IPSocket


C Specification

#include <dolphin/ip.h>

#define IP_INET     2   // Internet protocol
#define IP_ALEN     4   // IP address length

typedef struct IPSocket
{
    u8 len; 		// IP_SOCKLEN
    u16 family;         // IP_INET
    u16 port;
    u8  addr[IP_ALEN];
} IPSocket;

Description

A socket is formed with an IP network address and a port number within each host. A pair of sockets uniquely identifies the connection. The family member should be set to IP_INET for future software compatibility.

See Also