![]() |
Home |
|
Function xn_abortAbort a TCP socket and any associated connections. int xn_abort(SOCKET socket, int tcp_send_reset); ParameterssocketSocket number returned by socket or -1 for all sockets in the system. tcp_set_resetFlag which specifies whether to send a RESET message to the remote; TRUE means send RESET and FALSE means do not send RESET. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Error Codes further describes each error. Possible values for this function are:
This routine shuts down a connection and frees all buffers associated with the connection. TCP resources are freed unconditionally. If the parameter tcp_send_reset is TRUE, a TCP RESET packet is sent to the remote host. If the socket number is -1, all sockets in the system are aborted, i.e. TCP, UDP and RAW. Note: This function is for TCP only if a non-negative socket number is specified.
|