Struct SockAddrIPv4
A D representation of the sockaddr_in
struct
Constructors
Name | Description |
this
|
Construct a SockAddrIPv4
|
Fields
Name | Type | Description |
sa
|
core.sys.posix.netinet.in_.sockaddr_in | the underlying sockaddr_in struct
|
Properties
Name | Type | Description |
addr [get, set]
|
IPv4 | Get/set the sa's addr
|
port [get, set]
|
ushort | Get/set the sa's port in host byte order
|
Methods
Name | Description |
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
|