in reply to Re^2: UDP server with IO::Socket::INET
in thread UDP server with IO::Socket::INET
I don't see any (easy) way to get around having to have your clients let the server know they want to receive data. I suppose you can have the clients just close the socket when they're tired of listening and the server could remove them when the send fails but you still need some way to know which clients to send to.
Since you're on a LAN, I suppose you could send to the broadcast address and let the clients listen when they want to. If you are dealing with a sane OS you might want to check out IO::Socket::Multicast.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: UDP server with IO::Socket::INET
by ikegami (Patriarch) on Mar 03, 2010 at 15:42 UTC | |
by rowdog (Curate) on Mar 04, 2010 at 11:24 UTC | |
by ikegami (Patriarch) on Mar 04, 2010 at 19:37 UTC | |
by rowdog (Curate) on Mar 05, 2010 at 12:54 UTC | |
by ikegami (Patriarch) on Mar 05, 2010 at 16:30 UTC | |
|