api
socket.ch
Declarations in socket.ch
1 declarationscstd
Declarations
Public only
socketpair#
Publicfunction
func socketpair(__domain : int, __type : int, __protocol : int, __fds : int[2]) : int
Create two new sockets, of type TYPE in domain DOMAIN and using
protocol PROTOCOL, which are connected to each other, and put file
descriptors for them in FDS[0] and FDS[1]. If PROTOCOL is zero,
one will be chosen automatically. Returns 0 on success, -1 for errors.