Jump to main content

##

# TCP_SOCKET_INFO Structure

## C

    typedef struct {
    IP_ADDRESS_TYPE addressType;
    IP_MULTI_ADDRESS remoteIPaddress;
    IP_MULTI_ADDRESS localIPaddress;
    TCP_PORT remotePort;
    TCP_PORT localPort;
    TCPIP_NET_HANDLE hNet;
    TCPIP_TCP_STATE state;
    uint16_t rxSize;
    uint16_t txSize;
    uint16_t rxPending;
    uint16_t txPending;
    TCP_SOCKET_FLAGS flags;
    } TCP_SOCKET_INFO;

## Description

Structure: TCP_SOCKET_INFO.

Gets information about a socket.

## Parameters

Parameters | Description
--- | ---
addressType | Address type of the socket IPv4 or IPv6.
remoteIPaddress | Remote address to which the socket is connected.
localIPaddress | Local address socket is bound to.
remotePort | Port number associated with remote node.
localPort | Local port number.
hNet | Associated interface.
state | Current socket state.
rxSize | Size of the RX buffer.
txSize | Size of the TX buffer.
rxPending | Bytes pending in RX buffer.
txPending | Bytes pending in TX buffer.
flags | Socket flags.