Ashet OS

namespace: ashet.network.udp

System Calls

syscall create_socket(out socket: UdpSocket)

Creates a new UDP socket.

Asynchronous Operations

async_call Bind(in socket: UdpSocket, in bind_point: EndPoint, out endpoint: EndPoint)
async_call Connect(in socket: UdpSocket, in target: EndPoint)
async_call Disconnect(in socket: UdpSocket)
async_call Send(in socket: UdpSocket, in data: bytestr, out bytes_sent: usize)
async_call SendTo(in socket: UdpSocket, in receiver: EndPoint, in data: bytestr, out bytes_sent: usize)
async_call ReceiveFrom(in socket: UdpSocket, in buffer: bytebuf, out bytes_received: usize, out sender: EndPoint)