Home |
Function net_hardclosesocket |
Function net_hardclosesocketHard-closes a socket. SOCKET net_hardclosesocket(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. This function first calls setsockopt with option SO_LINGER to put the socket in hard close mode. It then calls and returns net_closesocket.
|