Struct SockAddrIPv4

A D representation of the sockaddr_in struct

struct SockAddrIPv4 ;

Constructors

NameDescription
this Construct a SockAddrIPv4

Fields

NameTypeDescription
sa core.sys.posix.netinet.in_.sockaddr_inthe underlying sockaddr_in struct

Properties

NameTypeDescription
addr[get, set] IPv4Get/set the sa's addr
port[get, set] ushortGet/set the sa's port in host byte order

Methods

NameDescription
any Construct an any sockaddr for the given port
broadcast Construct a broadcast sockaddr for the given port
loopback Construct a loopback sockaddr for the given port
toString Convert the address to GC allocated string in the format addr:port
toStringAddr Convert just the address part to a GC allocated string
toStringPort Convert just the port part to a GC allocated string