UdpSocket.send

Send raw data to a remote peer.

Make sure that the size is not greater than UdpSocket.MaxDatagramSize, otherwise this function will fail and no data will be sent.

  1. Status send(const(void)[] data, IpAddress address, ushort port)
    class UdpSocket
    Status
    send
    (
    const(void)[] data
    ,,
    ushort port
    )
  2. Status send(Packet packet, IpAddress address, ushort port)

Parameters

data const(void)[]

Pointer to the sequence of bytes to send

address IpAddress

Address of the receiver

port ushort

Port of the receiver to send the data to

Return Value

Type: Status

Status code.

Meta