Jump to main content

##

# TCPIP_STACK_NetIndexGet Function

## C

    int TCPIP_STACK_NetIndexGet(
        TCPIP_NET_HANDLE hNet
    );

## Description

This function converts a network interface handle to an interface number.

## Preconditions

The TCP/IP stack should have been initialized by TCPIP_STACK_Initialize() and the TCPIP_STACK_Status() returned SYS_STATUS_READY.

## Parameters

Parameters | Description
--- | ---
hNet | Interface handle.

## Returns

- Index of this network handle in the stack.
- -1 if invalid.

## Remarks

None.