Winsock Error Codes - Brought to you by Winsock-Error.com

10058 "Cannot send after socket shutdown."

WSAESHUTDOWN (Winsock error number: 10058)

Microsoft say this about Winsock error 10058 - WSAESHUTDOWN:

A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call. By calling shutdown a partial close of a socket is requested, which is a signal that sending or receiving, or both have been discontinued.

Full details of Winsock TCP error 10058 - WSAESHUTDOWN:

Berkeley description: A request to send data was disallowed because the socket had already been shut down with a previous shutdown() call.

WinSock description: Same as Berkeley. By calling shutdown() you do a partial close of a socket, which means you have discontinued sending. The WinSock implementation will not allow you to send after this.

TCP/IP scenario: Calling with how=1 or how=2 sends a TCP FIN packet to the remote address, which literally means "I'm done sending." If the local host sent any more data after that point, it would be in clear violation of the TCP specification (RFCs 793 and 1122).

   
This page is designed to help you to understand Winsock TCP error 10058. It will not necessarily mean you can instantly fix issues when your computer tells you that Winsock is having problems with code 10058, rather it will give you the necessary background information to help solve the matter.

Programming declarations for 10058 (WSAESHUTDOWN):

C#
long WSAESHUTDOWN = 10058 ;

VB.net
Dim WSAESHUTDOWN As Long = 10058

VB6
Dim WSAESHUTDOWN As Long
WSAESHUTDOWN = 10058