TCPIP_ARP_HandlerRegister Function

C

TCPIP_ARP_HANDLE TCPIP_ARP_HandlerRegister(
    TCPIP_NET_HANDLE hNet, 
    TCPIP_ARP_EVENT_HANDLER handler, 
    const void* hParam
);

Description

This function will register a notification handler with the ARP module.

Preconditions

The ARP module should have been initialized.

Parameters

ParametersDescription
hNetSpecifies interface to register on. Use hNet == 0 to register on all interfaces available.
handlerHandler to be called for event.
hParamThe hParam is passed by the client and will be used by the ARP when the notification is made. It is used for per-thread content or if more modules, for example, share the same handler and need a way to differentiate the callback.

Returns

TCPIP_ARP_HANDLE

  • On Success - Returns a valid handle.

  • On Failure - Null handle.

Remarks

None.