Gerard's Perl Page
Index
Home
About
Old News
Contribute



Portfolio
metamail
rifle
ubh
whatpix
ydecode

Links
use Perl;
Perl Monks
www.perl.com
ActiveState
CPAN
Perl User Groups
Perl Mongers
Powered By Perl
Template Toolkit
Emacs

ubh 1.5
by gerard on Sun Jan 7 00:00:00 PST 2001

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.