You likely want to add an inner loop to keep on reading:
... if ($pid == 0) { # This is the fork child while( $new_sock->connected ) { $new_sock->recv(my $data, 500); print "$data\n"; } }
In reply to Re: TCP Server using fork to accept multiple requests
by Corion
in thread TCP Server using fork to accept multiple requests
by Lucas Rey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |