![]() |
Home |
|
Function xn_arp_sendSends a gratuitous ARP. int xn_arp_send(int interface_no); Parametersxn_interface_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:
Broadcasts an ARP request to all hosts on the local network segment using its own IP address as the sender and target protocol address in order to force all other hosts on the network to update the entry in their ARP cache for this IP address. This routine must be called after xn_interface_open and getting an IP address.
|