Skip to content

Core\Net\Datagram

A UDP socket, returned by Core\Net::bindDatagram. send sends one message to an address, and receive waits for one message and returns it as a Core\Net\Datagram\Message.

Returned by

You get a Core\Net\Datagram from these methods:

Members

4 members.

MemberSignature
sendsend(string $host, uint $port, bytes $payload, Core\Time\Duration $within): uint
receivereceive(uint $max, Core\Time\Duration $within): Core\Net\Datagram\Message
portport(): uint
closeclose(): void