UdpSocket.receive

Receive a formatted packet of data from a remote peer.

In blocking mode, this function will wait until the whole packet has been received.

  1. Status receive(void[] data, size_t sizeReceived, IpAddress address, ushort port)
  2. Status receive(Packet packet, IpAddress address, ushort port)
    class UdpSocket
    Status
    receive

Parameters

packet Packet

Packet to fill with the received data

address IpAddress

Address of the peer that sent the data

port ushort

Port of the peer that sent the data

Return Value

Type: Status

Status code.

Meta