Function lrs::syscall::socketpair

Creates a pair of connected sockets.

Syntax

fn socketpair(domain: i32, ty: i32, proto: i32, sv: &mut [i32; 2]) -> i32

Arguments

NameDescription
domain

The domain of the sockets.

ty

The type of the sockets.

proto

The protocol of the sockets.

sv

The place where the sockets will be stored.

Return value

Returns success or an error value.

See also