Re: UDP communication Question
Re: UDP communication Question
- Subject: Re: UDP communication Question
- From: Quinn <email@hidden>
- Date: Fri, 7 Feb 2003 09:10:58 +0000
At 23:05 +0000 6/2/03, Mark Thomas wrote:
As long this buffer is good for all tcp sockets and udp sockets, then sounds
good to me.
I know when you OTBind a tcp configuration, you need to specific the max
number of connections.
But udp it said it didn't use it :-(, so are the docs wrong ???
No, the docs aren't wrong (at least in this case :-). The qlen
parameter relates to the number of incoming connections that can be
buffered on a connection-oriented endpoint, and hence does not apply
to UDP.
The parameters you're interested in are XTI_SNDBUF and XTI_RCVBUF.
These control the amount of data that the kernel is prepared to
buffer per endpoint. They're discussed in greater depth in:
<
http://developer.apple.com/macosx/rendezvous/>
If this buffer fills up, one of two things happen.
1. If the endpoint is connection-oriented, TCP starts to close the
window, which prevents the remote peer from sending more data.
2. If the endpoint in connectionless, UDP just tosses packets away
(and should send an ICMP_SOURCEQUENCH to the sender).
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.