GCLIB_DLL_EXPORTED GReturn GCALL GIpRequests | ( | GCStringOut | requests, |
GSize | requests_len | ||
) |
Uses GUtility(), G_UTIL_GCAPS_IPREQUEST or G_UTIL_IPREQUEST to provide a list of all Galil controllers requesting IP addresses via BOOT-P or DHCP.
requests | The buffer to hold the list of requesting controllers. Data will be null terminated, even if the data must be truncated to do so. See below for more information. |
requests_len | The length of the requests buffer. |
GIpRequests() will block about 5 seconds while listening for requests.
If gcaps is available, the listing will come from the server via G_UTIL_GCAPS_IPREQUEST. In the absence of the server, gclib will use G_UTIL_IPREQUEST to generate the list.
Each line of the returned data will be of the form model, serial_number, MAC_address, network_adaptor_name, network_adaptor_ip_address. For example:
DMC4000, 291, 00:50:4C:20:01:23, LAN, 10.1.3.10 RIO47000, 37290, 00:50:4C:28:91:AA, Static, 192.168.0.41
See x_examples.cpp for an example.
Definition at line 99 of file gclibo.c.
References G_NO_ERROR, G_UTIL_GCAPS_IPREQUEST, G_UTIL_IPREQUEST, and GUtility().