Hi all,
I am dealing with sockets in my code.
I open them like -
System.Net.IPAddress remoteIPAddress = System.Net.IPAddress.Parse
(szIPSelected);
System.Net.IPEndPoint remoteEndPoint = new System.Net.IPEndPoint
(remoteIPAddress, alPort);
// Connect to the remote End point in the socket.
m_socClient.Connect(remoteEndPoint);
After having done my work I close it by-
m_socClient.Shutdown(SocketShutdown.Both);
m_socClient.Close();
I get an error "An existing connection was forcibly closed by the remote host
Error code: 10054" after running the application several times.
Am I missing on something?
Best regards,
SK