sysl

Module

sysl.net.hosted

net_accept net_bind net_bind_path net_close net_connect net_connect_path net_listen net_local net_option net_peer_credentials net_recv net_recv_from net_resolve net_send net_send_file net_send_to net_send_vectored net_shutdown net_socket

Import import sysl.net.hosted
Requires
requires { libc }, requires { posix }

Index

net_accept net_bind net_bind_path net_close net_connect net_connect_path net_listen net_local net_option net_peer_credentials net_recv net_recv_from net_resolve net_send net_send_file net_send_to net_send_vectored net_shutdown net_socket

Functions

net_accept

net_accept(fd: int, peer: *Endpoint) -> int

net_bind

net_bind(fd: int, at: *Endpoint) -> int

net_bind_path

net_bind_path(fd: int, path: *u8, path_len: usize) -> int

net_close

net_close(fd: int) -> int

net_connect

net_connect(fd: int, to: *Endpoint) -> int

net_connect_path

net_connect_path(fd: int, path: *u8, path_len: usize) -> int

net_listen

net_listen(fd: int, backlog: int) -> int

net_local

net_local(fd: int, at: *Endpoint) -> int

net_option

net_option(fd: int, which: int, value: i64) -> int

net_peer_credentials

net_peer_credentials(fd: int, out: *Credentials) -> int

net_recv

net_recv(fd: int, into: *u8, room: usize) -> isize

net_recv_from

net_recv_from(fd: int, into: *u8, room: usize, from: *Endpoint) -> isize

net_resolve

net_resolve(host: *u8, host_len: usize, port: int, passive: int, out: *Endpoint, room: usize) -> int

net_send

net_send(fd: int, from: *u8, len: usize) -> isize

net_send_file

net_send_file(fd: int, file: int, offset: i64, count: usize) -> isize

net_send_to

net_send_to(fd: int, from: *u8, len: usize, to: *Endpoint) -> isize

net_send_vectored

net_send_vectored(fd: int, pieces: *Piece, count: usize) -> isize

net_shutdown

net_shutdown(fd: int, how: int) -> int

net_socket

net_socket(family: int, kind: int) -> int

Search

Esc
↑↓ to navigate ↵ to open Esc to close