Re: Passing socket descriptor between threads

2012-08-06 Thread William Ward
ist connections< handler[5]: >help< handler[5]: >exit< handler[5]: Client exiting. handler[6]: >exit< handler[6]: Client exiting. ^C - Original Message - From: William Ward To: "beginners@perl.org" Cc: Sent: Thursday, August 2, 2012 5:13 PM Subject: Passing

Passing socket descriptor between threads

2012-08-02 Thread William Ward
Hi All, Is there a way to pass a "socket descriptor" to another thread?   Here is an example of what is being attempted here: #!/usr/bin/perl use strict; use threads; use Socket; my $listener_thread = threads->new(\&listener); $listener_thread->join; sub listener {    my $prot = getproto