Reputation: 1031
In my C++ application I'm using network connection (TCP). when I'm identify a network connection error I'm trying to connect to another interface. in the reconnection the connect function has passed with no error but on send function it return an SOCKET_ERROR and WSGetLastError return 10054. do you know what is the meaning of this error and what should I do to resolve it?
10x
Upvotes: 1
Views: 1514
Reputation: 87
10054 (connection reset by peer) after successfull connect() means that the server accepts incoming connection but after that it closes the accepted socket without waiting for incoming information. The only way to resolve this is to check the server application logic.
Upvotes: 0
Reputation: 104050
10054
means connection reset by peer -- the remote endpoint replied with an RST
packet to tell you that the connection isn't open. Reconnect with connect()
instead of trying to simply change interfaces on your local end.
Upvotes: 2