vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct NetworkAddress

Represents a network/socket address.

struct NetworkAddress ;

Constructors

NameDescription
this (addr)

Properties

NameTypeDescription
family[get, set] ushortFamily of the socket address.
port[get, set] ushortThe port in host byte order.
sockAddr[get] inout(core.sys.posix.sys.socket.sockaddr)*A pointer to a sockaddr struct suitable for passing to socket functions.
sockAddrInet4[get] inout(core.sys.posix.netinet.in_.sockaddr_in)*
sockAddrInet6[get] inout(core.sys.posix.netinet.in_.sockaddr_in6)*
sockAddrLen[get] uintSize of the sockaddr struct that is returned by sockAddr().
sockAddrUnix[get] inout(core.sys.posix.sys.un.sockaddr_un)*

Methods

NameDescription
toAddressString () Returns a string representation of the IP address
toString () Returns a full string representation of the address, including the port number.
Authors

Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.