AsyncSocket.sendMessage

Submits an asynchronous request on this socket to send a message. Upon successful transmission onSend will be called. The message must have been allocated using NetworkMessage.alloc and will be freed with NetworkMessage.free after the completion callback returns, or once an error occurs that prevents said callback from being called.

  1. void sendMessage(NetworkMessage* message, AsyncSendRequest.OnComplete onSend)
    class AsyncSocket
    package nothrow
    void
    sendMessage
  2. void sendMessage(NetworkMessage message, AsyncSendRequest.OnComplete onSend)

Meta