Ashet OS

namespace: ashet.network.tcp

System Calls

syscall create_socket(out socket: TcpSocket)

Creates a new TCP socket.

Asynchronous Operations

async_call Bind(in socket: TcpSocket, in bind_point: network.EndPoint, out bound_endpoint: network.EndPoint)
async_call Connect(in socket: TcpSocket, in target: network.EndPoint)
async_call Send(in socket: TcpSocket, in data: bytestr, out bytes_sent: usize)
async_call Receive(in socket: TcpSocket, in buffer: bytebuf, in read_all: bool, out bytes_received: usize)