Re: Question on select() and sockets
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Tue, 10 Jun 2008 14:05:57 +0200
David Schwartz <davids@xxxxxxxxxxxxx> writes:
On Jun 10, 2:48 am, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:
POSIX/ SUS doesn't contain definitions of particular transport
protocols. UDP is defined as a thin layer above IP, just adding a
'datagram body' with a length field, support for checksumming that,
and source and destination ports so that different applications using
UDP on a single host can as easily be supported as for TCP. This means
that UDP has all the 'transport characteristics' of IP, meaning each
datagram travels indepedently and involved devices are supposed to
make a 'best effort' attempt to further delivery. Nothing is specified
regarding behaviour of the end system after a datagram was delivered
to it.
In other words, a UDP datagram can be dropped at any time.
And this is wrong. If a UDP datagram is lost in transport for some
reason, it is the responsibility of the application to cope with that.
That's all what the protocol definition (of IP, actually) says to
this.
.
- Follow-Ups:
- Re: Question on select() and sockets
- From: David Schwartz
- Re: Question on select() and sockets
- References:
- Question on select() and sockets
- From: K-mart Cashier
- Re: Question on select() and sockets
- From: Alex Fraser
- Re: Question on select() and sockets
- From: K-mart Cashier
- Re: Question on select() and sockets
- From: William Ahern
- Re: Question on select() and sockets
- From: Alex Fraser
- Re: Question on select() and sockets
- From: Rainer Weikusat
- Re: Question on select() and sockets
- From: David Schwartz
- Re: Question on select() and sockets
- From: Rick Jones
- Re: Question on select() and sockets
- From: David Schwartz
- Re: Question on select() and sockets
- From: Rainer Weikusat
- Re: Question on select() and sockets
- From: David Schwartz
- Question on select() and sockets
- Prev by Date: loopback test on serial port. Default termios config
- Next by Date: Re: Question on select() and sockets
- Previous by thread: Re: Question on select() and sockets
- Next by thread: Re: Question on select() and sockets
- Index(es):
Relevant Pages
|