UdpStream

Stream optimised for UDP connections.

Constructors

this
this(Socket socket, Address address, size_t bufferSize)
Undocumented in source.

Members

Functions

receive
ubyte[] receive()
Undocumented in source. Be warned that the author may not have intended to support it.
receiveFrom
ubyte[] receiveFrom(Address address)
Undocumented in source. Be warned that the author may not have intended to support it.
send
ptrdiff_t send(ubyte[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
sendTo
ptrdiff_t sendTo(ubyte[] buffer, Address address)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Stream

socket
Socket socket;

Socket used for writing and reading data.

last_recv
ptrdiff_t last_recv;
Undocumented in source.
send
ptrdiff_t send(ubyte[] buffer)

Sends bytes to the connected socket.

receive
ubyte[] receive()

Receives bytes from the connected socket.

lastRecv
ptrdiff_t lastRecv [@property getter]

Indicates the result of the last receive call performed on the connected socket.

Meta