Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Problems with INET, Select, and Win32

by aquarium (Curate)
on Nov 25, 2010 at 00:45 UTC ( [id://873559]=note: print w/replies, xml ) Need Help??


in reply to Problems with INET, Select, and Win32

if you haven't yet heard of it, a utility called netcat is very useful for debugging network applications. it's small and easy to use from command line, able to do either side of connection etc.
regards a comment that UDP is peerless..i doubt whether this is true. afaik it still makes a connection directly to destination, but the protocol does not guarantee delivery or correct ordering of packets such as provided by TCP. UDP is not broadcast...unless you use a broadcast destination address. all IP traffic has source and destination address and port pairs.
the hardest line to type correctly is: stty erase ^H
  • Comment on Re: Problems with INET, Select, and Win32

Replies are listed 'Best First'.
Re^2: Problems with INET, Select, and Win32
by ikegami (Patriarch) on Nov 25, 2010 at 18:46 UTC

    regards a comment that UDP is peerless..i doubt whether this is true.

    UDP is connectionless. A UDP sockets can send to any address+port, and it can receive from any address+port. Apparently, one can use PeerAddr to limit from whom packets will be accepted, but that's not a property of the protocol.

    UDP is unreliable. It doesn't guarantee notification of delivery failures.

    Those are separate (although related) concepts.

    the protocol does not guarantee delivery

    That goes without saying. No protocols can guarantee delivery. That's impossible. For example, there's no way the protocol can deliver the message if I were to cut the machine's network access.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found