fixu2 has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that am only receiving response for the first request. Am not receiving response for the second pdumy $sock = IO::Socket::INET->new( Proto=> "tcp", PeerAddr => "$IP", PeerPort => "$port") || die "Could not connect to host => $IP: +$port \n"; print $sock $LOGINPDU."\n"; while($ans=<$sock>){ $ans1.=$ans; } $sock->flush(); if($ans1){ print $sock $transPDU."\n"; while($tns=<$sock>){ $tns.=$tns; } } $sock->close();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending multiple requests to a perl socket
by NetWallah (Canon) on Sep 23, 2013 at 15:41 UTC | |
by Anonymous Monk on Sep 23, 2013 at 15:48 UTC | |
by NetWallah (Canon) on Sep 24, 2013 at 03:29 UTC | |
|
Re: Sending multiple requests to a perl socket
by wjw (Priest) on Sep 23, 2013 at 11:08 UTC | |
|
Re: Sending multiple requests to a perl socket
by fixu2 (Initiate) on Sep 23, 2013 at 14:57 UTC |