Hi all,
I am dealing with sockets in my code.
I open them like -
System.Net.IPAd dress remoteIPAddress = System.Net.IPAd dress.Parse
(szIPSelected);
System.Net.IPEn dPoint remoteEndPoint = new System.Net.IPEn dPoint
(remoteIPAddres s, alPort);
// Connect to the remote End point in the socket.
m_socClient.Con nect(remoteEndP oint);
After having done my work I close it by-
m_socClient.Shu tdown(SocketShu tdown.Both);
m_socClient.Clo se();
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
I am dealing with sockets in my code.
I open them like -
System.Net.IPAd dress remoteIPAddress = System.Net.IPAd dress.Parse
(szIPSelected);
System.Net.IPEn dPoint remoteEndPoint = new System.Net.IPEn dPoint
(remoteIPAddres s, alPort);
// Connect to the remote End point in the socket.
m_socClient.Con nect(remoteEndP oint);
After having done my work I close it by-
m_socClient.Shu tdown(SocketShu tdown.Both);
m_socClient.Clo se();
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
Comment