in reply to Intercepting UDP broadcasts

Update: UDP not TCP!

Don't you need to listen() and accept() before you can recv()? Or is that all taken care of under the covers of IO::Socket?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!

Replies are listed 'Best First'.
Re: Intercepting UDP broadcasts
by Abigail-II (Bishop) on Jan 30, 2004 at 16:14 UTC
    No, this is a UDP socket. With UDP, you don't have end-to-end connection (like with TCP) - just datagrams being delivered. So there are no listen() or accept() steps involved. In fact, if you include a Listen option in the creation of the socket, the creation will fail.

    Abigail