KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Structure used to store an IPv4 address for a socket. More...
#include <netinet/in.h>
Data Fields | |
sa_family_t | sin_family |
Family for the socket. | |
in_port_t | sin_port |
Port for the socket. | |
struct in_addr | sin_addr |
Address for the socket. | |
unsigned char | sin_zero [8] |
Empty space, ignored for all intents and purposes. | |
Structure used to store an IPv4 address for a socket.
This structure is the standard way to set up addresses for sockets in the AF_INET address family. Generally you will not send one of these directly to a function, but rather will cast it to a struct sockaddr. Also, this structure contains the old sin_zero member which is no longer required by the standard (for compatibility with applications that expect it).
struct in_addr sockaddr_in::sin_addr |
Address for the socket.
Must be in network byte order.
sa_family_t sockaddr_in::sin_family |
Family for the socket.
Must be AF_INET.
in_port_t sockaddr_in::sin_port |
Port for the socket.
Must be in network byte order.
unsigned char sockaddr_in::sin_zero[8] |
Empty space, ignored for all intents and purposes.