in reply to Re^3: Sending AND Receiving on the Same Port
in thread Sending AND Receiving on the Same Port
I can see how each message is separate, but when I create a socket to broadcast, I have to specify it's for broadcasting:
$sender = IO::Socket::INET->new( PeerAddr => inet_ntoa(INADDR_BROADCAST), Broadcast => 1, PeerPort => '7071', Proto => 'udp' ) or die "cannot connect: $!\n";
So once I do this, doesn't that change the nature of the socket? I don't see a method in IO::Socket::INET or IO::Socket that lets me change the Broadcast flag to 0 after I send a broadcast. I've been trying with sockopt(), but it won't set or change any values.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Sending AND Receiving on the Same Port (udp broadcast example)
by ikegami (Patriarch) on Feb 24, 2011 at 05:24 UTC | |
|
Re^5: Sending AND Receiving on the Same Port
by ikegami (Patriarch) on Feb 24, 2011 at 04:53 UTC |