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: network.EndPoint, out endpoint: network.EndPoint)
async_call Connect(in socket: UdpSocket, in target: network.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: network.EndPoint, in data: bytestr, out bytes_sent: usize)
async_call ReceiveFrom(in socket: UdpSocket, in buffer: bytebuf, out bytes_received: usize, out sender: network.EndPoint)