Data Structures | |
struct | DISCOVERY_OPTIONS |
Defines | |
#define | NUT_THREAD_DISTSTACK 512 |
#define | DISCOVERY_PORT 9806 |
Functions | |
int | NutDiscoveryAnnTele (DISCOVERY_TELE *dist) |
Create an announcement datagram. | |
int | NutDiscoveryAppConf (DISCOVERY_TELE *dist) |
Apply new configuration. | |
void | DiscoveryResponder (void *arg) |
NutDiscoveryCallback | NutRegisterDiscoveryCallback (NutDiscoveryCallback func) |
Register a custom discovery callback handler. | |
int | NutRegisterDiscovery (u_long ipmask, u_short port, u_int flags) |
Register discovery telegram responder. |
|
Create an announcement datagram.
|
|
Apply new configuration.
|
|
Register a custom discovery callback handler. When a callback had been registered, all datagrams matching the IP mask are passed to this function, which should inspect the datagram contents and take any required action like calling NutDiscoveryAnnTele() etc. If the callback returns a positive value, a response will be sent back, using that return value as its length.
|
|
Register discovery telegram responder. The first call will activate the responder thread. Any subsequent calls will return a failure.
|