OverlappedConnectedSocket

Socket returned if a connection has been established.

Note: Available only on Windows.

Constructors

this
this(SocketType handle, AddressFamily af)

Create a socket.

Members

Functions

beginReceive
bool beginReceive(ubyte[] buffer, SocketState overlapped, Flags flags)

Begins to asynchronously receive data from a connected socket.

beginSend
bool beginSend(ubyte[] buffer, SocketState overlapped, Flags flags)

Sends data asynchronously to a connected socket.

endReceive
int endReceive(SocketState overlapped)

Ends a pending asynchronous read.

endSend
int endSend(SocketState overlapped)

* Ends a pending asynchronous send. * * Params: * overlapped = Unique operation identifier. * * Returns: Number of bytes sent. * * Throws: $(D_PSYMBOL SocketException) if unable to receive. * * Postcondition: result >= 0.

Inherited Members

From ConnectedSocket

disconnected_
bool disconnected_;

$(D_KEYWORD true) if the stream socket peer has performed an orderly shutdown.

disconnected
inout(bool) disconnected [@property getter]
receive
ptrdiff_t receive(ubyte[] buf, Flags flags)

Receive data on the connection.

send
ptrdiff_t send(const(ubyte)[] buf, Flags flags)

Send data on the connection. If the socket is blocking and there is no buffer space left, $(D_PSYMBOL send) waits, non-blocking socket returns 0 in this case.

Meta