This function broadcasts a request for all devices to identify themselves. A series of udp broadcast packets are sent out on a special port. Sealevel devices listening on this port will respond with device configuration information including IP, Netmask, Gateway, Name, and MAC address. NOTE: In order to support multiple ethernet interfaces, this function must use the SO_BINDTODEVICE socket option. This option requires elevated privileges.
- Parameters
-
| [in] | type | Search for SeaLink or SeaIO devices. |
| [in] | num | The maximum number of devices to find. Size of list. |
| [out] | *list | Information about found devices will be stored here. |
- Returns
- int Error code.
- Return values
-
| >=0 | Number of devices found. |
| -EPERM | Insufficent privileges. |
| -EINVAL | Incorrect parameters. |
| -ENOTCONN | Error establishing socket connection. |
| -EBADMSG | Received a response from an unknown port. |
Referenced by CCEthernet::find_devices().