- anyAddress
NetworkAddress anyAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
- connectTCP
TCPConnection connectTCP(string host, ushort port, string bind_interface, ushort bind_port, Duration timeout)
TCPConnection connectTCP(NetworkAddress addr, NetworkAddress bind_address, Duration timeout)
Establishes a connection to the given host/port.
- listenTCP
TCPListener[] listenTCP(ushort port, TCPConnectionDelegate connection_callback, TCPListenOptions options)
TCPListener listenTCP(ushort port, TCPConnectionDelegate connection_callback, string address, TCPListenOptions options)
Starts listening on the specified port.
- listenTCP
deprecated TCPListener[] listenTCP(ushort port, void delegate(TCPConnection) connection_callback, TCPListenOptions options)
deprecated TCPListener listenTCP(ushort port, void delegate(TCPConnection) connection_callback, string address, TCPListenOptions options)
Compatibility overload - use an @safe nothrow callback instead.
- listenTCP_s
TCPListener[] listenTCP_s(ushort port, TCPConnectionFunction connection_callback, TCPListenOptions options)
TCPListener listenTCP_s(ushort port, TCPConnectionFunction connection_callback, string address, TCPListenOptions options)
Starts listening on the specified port.
- listenUDP
UDPConnection listenUDP(NetworkAddress addr, UDPListenOptions options)
UDPConnection listenUDP(ushort port, string bind_address, UDPListenOptions options)
Creates a bound UDP socket suitable for sending and receiving packets.
- resolveHost
NetworkAddress resolveHost(string host, AddressFamily family, bool use_dns, Duration timeout)
NetworkAddress resolveHost(string host, ushort family, bool use_dns, Duration timeout)
Resolves the given host name/IP address string.
TCP/UDP connection and server handling.