README
1NAME
2 Net::DirectConnect - Perl Direct Connect protocol implementation
3
4SYNOPSIS
5 use Net::DirectConnect;
6 my $dc = Net::DirectConnect->new(
7 'host' => 'dc.mynet.com:4111', #if not 411
8 'Nick' => 'Bender',
9 'description' => 'kill all humans',
10 #'M' => 'P', #passive mode, autodetect by default
11 #'local_mask' => [qw(80.240)], #mode=active if hub in this nets and your ip in gray
12 );
13 $dc->wait_connect();
14 $dc->chatline( 'hi all' );
15
16 while ( $dc->active() ) {
17 $dc->work();
18 }
19 $dc->destroy();
20
21 look at examples for handlers
22
23DESCRIPTION
24 Currently NOT supported:
25 segmented, multisource download;
26 async connect;
27
28INSTALLATION
29 To install this module type the following:
30
31 cpan DBD::SQLite IO::Socket::IP IO::Socket::INET6 IO::Socket::SSL
32 perl Makefile.PL && make install clean
33
34 debian:
35 apt-get install libdbd-sqlite3-perl libio-socket-ip-perl libjson-xs-perl libjson-perl libmime-base32-perl liblib-abs-perl
36
37SEE ALSO
38 latest snapshot
39 svn co svn://svn.setun.net/dcppp/trunk/ dcppp
40
41 http://svn.setun.net/dcppp/timeline/browser/trunk
42
43 usage example:
44 used in [and created for] http://sourceforge.net/projects/pro-search http://pro.setun.net/search/
45 ( http://svn.setun.net/search/trac.cgi/browser/trunk/crawler.pl )
46
47
48 protocol info:
49 http://en.wikipedia.org/wiki/Direct_Connect_network
50 http://www.teamfair.info/DC-Protocol.htm
51 http://adc.sourceforge.net/ADC.html
52
53 also useful for creating links from web:
54 http://magnet-uri.sourceforge.net/
55 http://en.wikipedia.org/wiki/Magnet:_URI_scheme
56
57TODO
58 CGET file files.xml.bz2 0 -1 ZL1<<<
59
60 Rewrite better
61
62AUTHOR
63 Oleg Alexeenkov, <pro@cpan.org>
64
65COPYRIGHT AND LICENSE
66 Copyright (C) 2005-2011 Oleg Alexeenkov
67
68 This library is free software; you can redistribute it and/or modify it
69 under the same terms as Perl itself, either Perl version 5.10.0 or, at
70 your option, any later version of Perl 5 you may have available.
71
72