|
FireSync API
|
| kStatus kDhcpClient_AddEventHandler | ( | kDhcpClient | client, |
| kCallbackFx | function, | ||
| kPointer | receiver | ||
| ) |
Add a IP address change notification handler.
The registered callback will be invoked when an IP address is assigned to the client or when a lease expires. This function is not thread-safe and therefore should not be called after calling kDhcpClient_Start.
When the callback is invoked, the 'receiver' argument passed to this function will be provided as the 'receiver' argument to the callback. The 'args' callback parameter contains a pointer to a kDhcpClientEventArgs struct. The 'sender' parameter is not used at this time.
| client | kDhcpClient object. |
| function | Callback function. |
| receiver | Callback receiver. |