|
Released version 1.5 of ubh - the Usenet
Binary Harvester.
I created derived a class
from Net::NNTP called Ubh::NNTP which
provides automatic reconnection to the server. To view
this code, the easiest way is to look in the ubh
CVS server on SourceForge. Actually, Ubh::NNTP
isn't really derived from Net::NNTP; it wraps
an instance of Net::NNTP, intercepts calls to
group and body, and just delegates
all other method calls to the Net::NNTP instance
via AUTOLOAD. This was necessary as
Net::NNTP is not a simple blessed hash, thus
I could not just append my derived data into the object.
See DELEGATION in perlbot for a description of this technique.
|