sockaddr_in3type
Ipv4 socket address
Usage
#include <netinet/in.h>
struct sockaddr_in { sa_family_t sin_family; /* AF_INET */ in_port_t sin_port; /* Port number */ struct in_addr sin_addr; /* IPv4 address */ };
struct in_addr { in_addr_t s_addr; };
typedef uint32_t in_addr_t; typedef uint16_t in_port_t;
Library
Standard C library (libc)
Overview
sockaddr_in
|
Describes an IPv4 Internet domain socket address. |
|---|---|
|
.sin_port and .sin_addr are stored in network byte order. |
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.