Home |
Function xn_add_host_table_entry Function xn_delete_host_table_entry Function xn_abort Function xn_interface_open_config Function xn_interface_ethernet_statistics Function xn_interface_statistics Function xn_send_ethernet_frame Function cb_wr_screen_string_fnc Function cb_rs232_connection_lost_fnc |
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.
|