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

Re: Socket Programming

by flyingmoose (Priest)
on Jan 07, 2004 at 13:40 UTC ( #319434=note: print w/replies, xml ) Need Help??

in reply to Socket Programming

UDP has not been mentioned yet. While TCP/IP is a protocol that is stream based (like a pipe), UDP is not. UDP can only send one packet at a time, and the packets are not guaranteed to arrive or arrive in the same order. You might use UDP in a situation in a situation where your packets are merely informational (ex: systems monitoring) and you do not need to send huge chunks of ordered data. Essentially, UDP will be faster and will not cause problems for the sending application if the recipient does not behave properly. For 95% of the applications out there, though, TCP/IP is preferable.

Replies are listed 'Best First'.
Re: Re: Socket Programming
by MidLifeXis (Monsignor) on Jan 07, 2004 at 17:45 UTC
    > You might use UDP in a situation in a situation

    Or in a situation where you do not care about duplicate packets ;)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://319434]
[stevieb]: my RPi::WiringPi now fully supports: GPIO, LCDs, digital potentiometers, analog to digital converters, shift registers, barometric pressure sensor, direct access to SPI bus, and ability for more :)
[stevieb]: ...just need to perform many tests and POD review this week, then I'm going to put together some real projects and post about them

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-01-22 22:42 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (190 votes). Check out past polls.