in reply to Re: how send message without new-line terminator on IO::Socket
in thread how send message without new-line terminator on IO::Socket
I only need to say why if I send a message terminated by a new-line the server read the message , without the new-line I got no answer.If the server is something like this : while( 1 ) { my $new_sock = $sock->accept(); $stmp = <$new_sock>; print "$stmp"; print $new_sock "$stmp\n"; close($new_sock); } close($sock); the server hang waiting for a newline. what cha I do to avoid the server waiting for the newline.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how send message without new-line terminator on IO::Socket
by Corion (Patriarch) on Jul 26, 2006 at 09:26 UTC | |
by earlati2 (Beadle) on Jul 26, 2006 at 14:58 UTC | |
by tye (Sage) on Jul 26, 2006 at 15:12 UTC | |
by earlati2 (Beadle) on Jul 27, 2006 at 07:33 UTC |