Home:ALL Converter>What is the proper backlog for an asynchronous server socket?

What is the proper backlog for an asynchronous server socket?

Ask Time:2010-05-08T12:46:31         Author:The.Anti.9

Json Formatter

If you're working with an Asynchronous server socket in C#, what is the proper backlog to put on the socket? For instance:

server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint iep = new IPEndPoint(IPAddress.Any, port);
server.Bind(iep);
server.Listen(10);

Author:The.Anti.9,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/2792961/what-is-the-proper-backlog-for-an-asynchronous-server-socket
yy