Help for this page
my $hSocket = IO::Socket::INET->new( LocalPort=>$intListenPort, ... respond, then close both ports. while ($hSocket->recv($datagram,42,$flags)) { ...
until ($hSocket->accept()) { ...check for timeout ... } while ($hSocket->recv($datagram,42,$flags)) { ...