creating a sender socket blocks a listening socket
Hello everyone,
I am stuck in a problem. Its a PERL socket programming problem. This is whats happening. I have a server that has two sockets. One socket($listen_socket) for listening any incoming request and One socket($sendingSocket) that will send a reply to one client only.(Actually it is a server that will only listen from one client and reply to that client). Here is my code Code:
$listen_socket = new IO::Socket::INET(LocalHost => 'xxx.xxx.xxx.xxx', LocalPort => xxxx, Proto => 'tcp', Listen => 10, Reuse => 1); Pls reply Thanks Mishu |
try and put print statements before and after each 'while' line as well as before and after the close statements. post the updated code along with the exact output. in doing this we should be able to see exactly where it appears to be stopped listening.
|
Show the client code also
|
All times are GMT -5. The time now is 09:58 AM. |