Home |
Function xn_add_host_table_entry Function xn_delete_host_table_entry Function xn_interface_open_config Function xn_interface_ethernet_statistics Function xn_interface_statistics Function xn_ip_set_option Function xn_send_ethernet_frame Function cb_wr_screen_string_fnc Function cb_rs232_connection_lost_fnc |
Function xn_ip_set_optionChange an IP option associated with a UDP or TCP socket. int xn_ip_set_option(SOCKET socket, int option_name, const char * option_value, int optionlen); ParameterssocketSocket returned by socket. option nameOption to set, see below for all supported values. option_valuePointer to buffer containing additional values for the option. optionlenLength of *option_value. return valueReturns 0 if option set successfully, 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. The supported option_names are
typedef struct _route_info { int route_len; // number of bytes pointed to by route_addresses BYTE * route_addresses; // list of routes } ROUTE_INFO; When xn_ip_set_option is called, the route_addresses are not copied into RTIP-32 data area but the address is saved. Therefore, the route_addresses should not be changed by the application while the routing option is on. Only one route IP option can be in effect; for example, if the LOOSE route option is turned on and xn_ip_set_option is called to turn on RECORD route, then LOOSE route will be turned off. Please note that many routers no longer support route options. Setting any route option may cause them to discard all packets with such options set. Function xn_interface_statistics
|