rizcotech has asked for the wisdom of the Perl Monks concerning the following question:
Hey, I have a listener program running on my server, hooked into 16 ports:
The Listener program gets executed when an IO::SOCKET::INET request comes in from a Perl script. What I would like to do is the following:12345/tcp 12346/tcp 22345/tcp 22346/tcp 22347/tcp 22348/tcp 22349/tcp 22350/tcp 22351/tcp 22352/tcp 22353/tcp 22354/tcp 22355/tcp 22356/tcp 22357/tcp 22358/tcp
If anyone can point me in the right direction it would be greatly appreciated. UPDATE:: This should be a client side script that checks if any of the above ports are available. If so, use that port to send a request. If the port is not available, loop to the next port.~Check If a port is available ~~If available, use it ~~If not, try another one of the predefined port ( ~~If that fails, then return message
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO:: SOCKET Check Port, Please Help!
by ikegami (Patriarch) on Sep 22, 2011 at 17:50 UTC | |
|
Re: IO:: SOCKET Check Port, Please Help!
by Perlbotics (Archbishop) on Sep 22, 2011 at 12:51 UTC | |
by Anonymous Monk on Sep 22, 2011 at 15:44 UTC | |
|
Re: IO:: SOCKET Check Port, Please Help!
by abubacker (Pilgrim) on Sep 22, 2011 at 10:21 UTC | |
by rizcotech (Initiate) on Sep 22, 2011 at 10:28 UTC |