1
Answer

Another socket issue

when a client socket reconnects after its network cable has been plugged in i get an exception on the server socket in

public static void OnClientConnect(IAsyncResult asyn)
{
    Socket workerSocket = m_mainSocket.EndAccept(asyn); <-- here is the problem
}

socket exception is

System.Net.Sockets.SocketException: The requested name is valid and was found in the
database, but it does not have the correct associated data being resolved for

if i wait like 10 seconds on the client side before reconnecting after cable is plugged in again it works fine ..

any1 got any idea's how the client knows when its ok for it to reconnect again ?

Answers (1)