UDP server socket

Richard Brodie R.Brodie at rl.ac.uk
Thu Oct 14 10:20:23 EDT 2004


"Ajay" <abra9823 at mail.usyd.edu.au> wrote in message
news:mailman.4934.1097757424.5135.python-list at python.org...

> whats the maximum number of datagrams that can queue up on a UDP server
> socket? or is that system dependent?

It's system dependent; depends how much buffer space the kernel wants to
give away. Pulling numbers out of the air I would have thought that some value
between 8kB and 64kB would be typical.

 getsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF) and the
corresponding setsockopt call appear to be what you want, though I've never
had cause to use them.





More information about the Python-list mailing list