AsyncSocket.receive

Submits a special asynchronous request on this socket to receive nothing. Also known as a "zero byte receive" onReceive will be called once there is new data on the socket that can be received immediately. Additionally, onReceive may also be called on connection-oriented sockets where the remote peer has disconnected gracefully with no further data being available for reception.

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

Meta