vibe.d beta banner
get vibe.d
0.9.4

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

Module vibe.core.net

TCP/UDP connection and server handling.

Functions

NameDescription
anyAddress()
connectTCP(host, port, bind_interface, bind_port, timeout) Establishes a connection to the given host/port.
listenTCP(port, connection_callback, options) Starts listening on the specified port.
listenTCP(port, connection_callback, options) Compatibility overload - use an @safe nothrow callback instead.
listenTCP_s(port, connection_callback, options) Starts listening on the specified port.
listenUDP(addr, options) Creates a bound UDP socket suitable for sending and receiving packets.
resolveHost(host, address_family, use_dns, timeout) Resolves the given host name/IP address string.

Classes

NameDescription
ReadTimeoutException Thrown by TCPConnection read-alike operations when timeout is reached.

Structs

NameDescription
NetworkAddress Represents a network/socket address.
TCPConnection Represents a single TCP connection.
TCPListener Represents a listening TCP socket.
UDPConnection Represents a bound and possibly 'connected' UDP socket.

Enums

NameDescription
TCPListenOptions Flags to control the behavior of listenTCP.
UDPListenOptions Flags to control the behavior of listenUDP
WaitForDataAsyncStatus Represents possible return values for TCPConnection.waitForDataAsync.
WaitForDataStatus

Aliases

NameTypeDescription
TCPConnectionDelegate nothrow @safe void delegate(TCPConnection) Callback invoked for incoming TCP connections.
TCPConnectionFunction nothrow @safe void function(TCPConnection) Callback invoked for incoming TCP connections.
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.