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_send_ethernet_frame Function cb_wr_screen_string_fnc Function cb_rs232_connection_lost_fnc |
Function xn_send_ethernet_framexn_send_ethernet_frame can be used to send arbitrary data on an open Ethernet interface: int xn_send_ethernet_frame(int interface, const byte * data, int length, dword flags); ParametersinterfaceInterface number (as returned by xn_interface_open or xn_interface_open_config) on which the data shall be sent. dataPointer to the data to be sent. lengthNumber of bytes to be sent. flagsReserved. This parameter must be set to zero. 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. xn_send_ethernet_frame sends out an Ethernet packet as given by the application. RTIP-32 will not add an Ethernet or IP header and it will not modify the data in any way. If you want RTIP-32 to create an Ethernet and IP header, use RAW sockets instead.
|