TcpSocket.receive

Receive raw data from the remote peer.

In blocking mode, this function will wait until some bytes are actually received. This function will fail if the socket is not connected.

  1. Status receive(void[] data, out size_t sizeReceived)
    class TcpSocket
    Status
    receive
    (
    void[] data
    ,
    out size_t sizeReceived
    )
  2. Status receive(Packet packet)

Parameters

data
Type: void[]

Array to fill with the received bytes

sizeReceived
Type: size_t

This variable is filled with the actual number of bytes received

Return Value

Type: Status

Status code.

Meta