Re: dcc chat example

2009-11-30 Thread Jay Savage
On Fri, Nov 27, 2009 at 6:29 AM, Shlomi Fish shlo...@iglu.org.il wrote:
[snip]
 Hi Marco,

 [snip]


 Net::IRC - DEPRECATED Perl interface to the Internet Relay Chat protocol
 USE THESE INSTEAD ^

 This module has been abandoned and is no longer developed. This release serves
 only to warn current and future users about this and to direct them to
 supported and actively-developed libraries for connecting Perl to IRC. Most
 new users will want to use Bot::BasicBot, whereas more advanced users will
 appreciate the flexibility offered by POE::Component::IRC. We understand that
 porting code to a new framework can be difficult. Please stop by #perl on
 irc.freenode.net and we'll be happy to help you out with bringing your bots
 into the modern era.


 Regards,

        Shlomi Fish

The point still stands, though, that one of the wonderful things about
CPAN is that the source code for all the modules is available. DCC is
a solved problem. Yes, several people have examples or hints, and
those reside in the source for Net::IRC, Bot::BasicBot, and
POE::Component::IRC. The thing to do is to take a module you like and
see how it implements the interface.

Of course, the *best* thing is usually to just use the module, but
sometimes there are good reasons not to. Just make sure to give credit
where credit is due and respect the license of whatever source of
inspiration you turn to.

HTH,

-- jay
--
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




RE: dcc chat example

2009-11-27 Thread Kammen van, Marco, Springer SBM NL
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/




Re: dcc chat example

2009-11-27 Thread Rob Coops
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


Re: dcc chat example

2009-11-27 Thread Shlomi Fish
On Friday 27 Nov 2009 12:49:28 Rob Coops wrote:
 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,
 
[snip]
 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.
 

I should note that using Net::IRC is no longer recommended:

http://search.cpan.org/dist/Net-IRC/

Reading from there:


NAME ^

Net::IRC - DEPRECATED Perl interface to the Internet Relay Chat protocol
USE THESE INSTEAD ^

This module has been abandoned and is no longer developed. This release serves 
only to warn current and future users about this and to direct them to 
supported and actively-developed libraries for connecting Perl to IRC. Most 
new users will want to use Bot::BasicBot, whereas more advanced users will 
appreciate the flexibility offered by POE::Component::IRC. We understand that 
porting code to a new framework can be difficult. Please stop by #perl on 
irc.freenode.net and we'll be happy to help you out with bringing your bots 
into the modern era.


Regards,

Shlomi Fish


 Regards,
 
 Rob
 

-- 
-
Shlomi Fish   http://www.shlomifish.org/
What does Zionism mean? - http://shlom.in/def-zionism

Chuck Norris read the entire English Wikipedia in 24 hours. Twice.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




dcc chat example

2009-11-23 Thread Kammen van, Marco, Springer SBM NL
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/ 

-