AsyncSocket.receiveMessage

Submits an asynchronous request on this socket to receive a message. Upon successful reception onReceive will be called with the received data. exact indicates whether successful reception requires the entire buffer provided within message to have been filled. If a socket error occurs, but some data has already been received, then onReceive will be called with that partial data regardless of exact.

  1. void receiveMessage(NetworkMessage* message, AsyncReceiveRequest.OnComplete onReceive, bool exact)
  2. void receiveMessage(NetworkMessage message, AsyncReceiveRequest.OnDataReceived onReceive, bool exact)
    class AsyncSocket
    nothrow
    void
    receiveMessage

Meta