$socket->send($sPacket); ($msg) = ''; recv($socket, $msg, 10, 0) or die "recv: $!"; #This line if($msg != NULL) { recv($socket, $msg2, 5, 0) or die "recv: $!"; #This line if($msg2 == 'p4150') { print "Successfully connected to the server."; } else { print "FAILB : $msg2"; } } else { print "FAILA : $msg"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)