Home |
Function net_closesocket |
Function net_closesocketCloses a socket. SOCKET net_closesocket(SOCKET s); ParameterssSocket to close. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Section Error Codes further describes each error. If the socket is in secure mode, all pending incoming data is discarded and the OpenSSL socket context is deallocated. Subsequently, function closesocket is called.
|