Jump to main content

##

# TCPIP_IPV6_HandlerRegister Function

## C

    IPV6_HANDLE TCPIP_IPV6_HandlerRegister(
        TCPIP_NET_HANDLE hNet,
        IPV6_EVENT_HANDLER handler,
        const void* hParam
    );

## Description

This function is used to register a notification handler with the IPv6 module.

## Preconditions

The IPv6 stack is initialized and the interface is up and configured.

## Parameters

Parameters | Description
--- | ---
netH | Specifies interface to register on.
handler | Handler to be called for event.
hParam | The hParam is passed by the client and will be used by the IPv6 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

Handle to registered callback.

- A valid handle - On success.
- Null handle - On failure.

## Remarks

None.