• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UDP communication Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: UDP communication Question (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Which OT Sample To Use?
  • Next by Date: Re: Defining Location on OS X
  • Previous by thread: Re: UDP communication Question
  • Next by thread: Rendezvous Kitchen Invitation
  • Index(es):
    • Date
    • Thread