Home |
Function xn_add_host_table_entry Function xn_delete_host_table_entry Function xn_interface_close 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_interface_closeClose an interface. int xn_interface_close(int iface_no); Parametersiface_noInterface number (returned by xn_interface_open, xn_interface_open_config, or xn_attach). 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. Possible values for this function are:
This routine closes the specified interface. Either xn_interface_open or xn_attach must be called before the interface can be used again. Unless xn_interface_opt has been called with option IO_HARD_CLOSE, the routine xn_wait_tcp_output can be called to wait for all TCP data on all sockets to be sent and acknowledged.
|