Hi,
You can fork for multiple connections. and define $SIG{INT} for ctrl-c:
Here is an example;
$SIG{INT} = \&destroy_server; #ctrl -> destroy_server
...
...
...
die "can not fork: $!" unless defined ($kid_pid=fork());
if ($kid_pid) {
while(<$new_sock>) {
print $_;
Dear List
I have able to write the client-server architecture script *( Based on the
script send by ZENTARA )* which can execute command at the server end and
display the result at client end . But the problem I am facing that the
server can not able to support multiple client it is only able to su
Dear List
I have a question regarding this client - server script. I am using two
modules in my script . One is IO::Socket and another is IO::Select. Now my
question is if I want to implement an architecture so that client script
will send a command to the server* [*which doesn't require root priv
On Mon, Mar 17, 2008 at 3:02 PM, Anirban Adhikary
<[EMAIL PROTECTED]> wrote:
> Dear List
> I want to write a script using TCP protocol where will be a single server
> which can handle multiple client request simultaneously. I am able to
> write a script using IO::Socket but In these scripts my