KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
sockaddr_in Struct Reference

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.
 

Detailed Description

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).

Field Documentation

◆ sin_addr

struct in_addr sockaddr_in::sin_addr

Address for the socket.

Must be in network byte order.

◆ sin_family

sa_family_t sockaddr_in::sin_family

Family for the socket.

Must be AF_INET.

◆ sin_port

in_port_t sockaddr_in::sin_port

Port for the socket.

Must be in network byte order.

◆ sin_zero

unsigned char sockaddr_in::sin_zero[8]

Empty space, ignored for all intents and purposes.


The documentation for this struct was generated from the following file: