UdpSocket Class extending Socket

/ Represents a udp socket /

Class Methods

Constructor for Udp sockets

function __construct() : void

Binds the socket to the given port

function bind(number port) : void

Recieves a single UDP packet, data is returned a string

function recv(number amount) : string

Sends a single UDP packet

function send(Ipv4Address address_to_send, number amount) : void