Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Intercepting UDP broadcasts

by BrowserUk (Patriarch)
on Jan 30, 2004 at 16:09 UTC ( [id://325266]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://325266]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-03-29 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found