AsyncSocket.receive

Submits an asynchronous request on this socket to receive data. Upon successful reception of at most data.length bytes onReceive will be called with the received bytes as a slice of data.

  1. void receive(ubyte[] data, AsyncReceiveRequest.OnDataReceived onReceive)
    class AsyncSocket
    nothrow
    void
    receive
  2. void receive(AsyncReceiveRequest.OnDataAvailable onReceive)

See Also

receiveExactly, receiveFrom

Meta