FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
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.

Parameters
clientkDhcpClient object.
functionCallback function.
receiverCallback receiver.
Returns
Operation status.