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

Re: Problems with INET, Select, and Win32

by aquarium (Curate)
on Nov 25, 2010 at 00:45 UTC ( #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
Re^2: Problems with INET, Select, and Win32
by ikegami (Pope) 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
Node Status?
node history
Node Type: note [id://873559]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (14)
As of 2014-12-19 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (81 votes), past polls