Make a service backend that takes requests on the host machine. Invoke a thread
to handle each client connection. Maintain state and session continuity over
multiple service requests. Encrypt communication using secret keys on both
server and client. Then implement the solution using web server
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
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