I have an problem in socket connection
I had client and Server application, the server application to listern an a particular port.
500 clients are to connected and send the data to process everything fine.
At particular time i closed all clients and also close the server. when i start server after 10 mins at before 2 mins start all clients, very few clients(5-15) are connected. give me a solution.
mainSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); endpoint = new IPEndPoint(IPAddress.Any, int.Parse(txt_server_port.Text)); mainSocket.Bind(endpoint); mainSocket.Listen(100); mainSocket.BeginAccept(new AsyncCallback(ConnetedClient), mainSocket);