TCPGetLocalSocket


C Specification

#include <dolphin/ip.h>
typedef struct IPSocket
{
    u8 len; 		// IP_SOCKLEN
    u16 family;         // IP_INET
    u16 port;
    u8  addr[IP_ALEN];
} IPSocket;
s32 TCPGetLocalSocket(TCPInfo* info, IPSocket* socket);

Description

TCPGetLocalSocket() gets the local socket (a pair of IP address and port number) of info.

Arguments

info Pointer to TCPInfo to get local socket.
socket Pointer to IPSocket that receives the local socket.

Return Values

IP_ERR_NONE Succeeded.
IP_ERR_INVALID info is not a valid TCPInfo.

See Also

IPSocket