The OpenD Programming Language

SocketAddress.toString

Returns a string representation of the address that identifies it in a custom format.

  • Unix domain socket addresses are their path prefixed with "unix:", unless they are in the abstract namespace, in which case it is prefixed with "abstract:" and the zero is trimmed out. For example, "unix:/tmp/pipe".
  • IPv4 addresses are written in dotted decimal followed by a colon and the port number. For example, "127.0.0.1:8080".
  • IPv6 addresses are written in colon separated hex format, but enclosed in brackets, then followed by the colon and port number. For example, "[::1]:8080".
struct SocketAddress
const @trusted
string
toString
()

Meta