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

ParametersDescription
addressTypeAddress type of the socket IPv4 or IPv6.
remoteIPaddressRemote address to which the socket is connected.
localIPaddressLocal address socket is bound to.
remotePortPort number associated with remote node.
localPortLocal port number.
hNetAssociated interface.
stateCurrent socket state.
rxSizeSize of the RX buffer.
txSizeSize of the TX buffer.
rxPendingBytes pending in RX buffer.
txPendingBytes pending in TX buffer.
flagsSocket flags.