HalNineThousand has asked for the wisdom of the Perl Monks concerning the following question:
I've been searching and I've found a LOT of tutorials on creating sockets in Perl. In a few cases there's even chat applications.
What I haven't found is anything on how to send AND receive on the same port.
I want to be able to send out a broadcast message (which I know is UDP), then listen for a response on the same port. This is a simple app to find a system when you can't be sure where it is on the LAN (in case I can't get an assigned IP address for the system).
Are there any tutorials or is there any information using a socket on one port for sending AND receiving? (Or a way to make one socket to listen and one to send?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending AND Receiving on the Same Port
by ikegami (Patriarch) on Feb 23, 2011 at 22:09 UTC | |
by HalNineThousand (Beadle) on Feb 24, 2011 at 01:29 UTC | |
by ikegami (Patriarch) on Feb 24, 2011 at 02:08 UTC | |
by HalNineThousand (Beadle) on Feb 24, 2011 at 02:53 UTC | |
by ikegami (Patriarch) on Feb 24, 2011 at 05:24 UTC | |
by ikegami (Patriarch) on Feb 24, 2011 at 04:53 UTC | |
by HalNineThousand (Beadle) on Feb 24, 2011 at 17:35 UTC |