On Fri, Nov 27, 2009 at 11:26 AM, Kammen van, Marco, Springer SBM NL < marco.vankam...@springer.com> wrote:
> Absolutely no'one with a example or hint in the right direction??? > > :-( > > - > Marco van Kammen > Springer Science+Business Media > System Manager & Postmaster > - > van Godewijckstraat 30 | 3311 GX > Office Number: 05E21 > Dordrecht | The Netherlands > - > tel > +31(78)6576446 > fax > +31(78)6576302 > > - > www.springeronline.com > www.springer.com > - > > > > -----Original Message----- > From: Kammen van, Marco, Springer SBM NL [mailto: > marco.vankam...@springer.com] > Sent: Monday, November 23, 2009 2:18 PM > To: beginners@perl.org > Subject: dcc chat example > > Hi All, > > > > I've been looking at this for ages. > > Does anyone have a working script or example of how to use a dcc chat > while already connected to a irc server. > > Without the use of additional modules like Net::IRC. > > > > I guess I need to use either IO::Multiplex or IO::Select but I can't get > it to work. > > As soon as I connect the second socket and read/write to it the first > socket (the one with the irc server session) blocks.... > > > > I will e-mail the code on request.. > > > > Thanks & Regards, > > > > - > > Marco van Kammen > Springer Science+Business Media > System Manager & Postmaster > > - > > van Godewijckstraat 30 | 3311 GX > Office Number: 05E21 > Dordrecht | The Netherlands > > - > > tel > > +31(78)6576446 > > fax > > +31(78)6576302 > > - > > www.springeronline.com <http://www.springeronline.com> > www.springer.com <http://www.springer.com/> > > - > > > > > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > Hi Marco, I think what you are looking for makes little sense to most people, as the modules for dcc chat are out there most of us will simply use these to implement a dcc chat in our code. Reinventing the wheel makes little sense in the end as what you will be creating will be very much the same as what Net::IRC:DCC offers you. If you are worried about portability of code don't be... looking at the dependencies there are none but IO::File, ExtUtils::MakeMaker, Socket which are all core modules. You can thus simply include Net::IRC::DCC in your own lib directory that you move around with the rest of the code. As long as you "use lib '<your lib path>';" you should be fine. With a little more effort you could do something like this use FindBin qw( $Bin ); use lib "$Bin/lib"; Which will simply find the path to your script and assume that that is where the lib dir is found, there are of course more ways to sort that out it is perl after all. :-) Anyway, if you are looking for example code why not have a look at the Net::IRC::DCC module which most likely will provide you exactly with the information you are looking for. Regards, Rob