TCPIP_STACK_NetHandleGet Function

C

TCPIP_NET_HANDLE TCPIP_STACK_NetHandleGet(
    const char* interface
);

Description

This function resolves a network interface name to a handle.

Preconditions

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

Parameters

ParametersDescription
interfaceThe names specified in TCPIP_NETWORK_CONFIG.

Returns

  • Network handle.

Remarks

None.

Example

TCPIP_NET_HANDLE hNet = TCPIP_STACK_NetHandleGet("PIC32INT");
or
TCPIP_NET_HANDLE hNet = TCPIP_STACK_NetHandleGet("eth0");