Socket operations#
syscalls_sockAccept
(syscalls_sys_accept)
#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, struct sockaddr *, address, 1);
GETFROMSTACK(ustack, socklen_t *,address_len, 2);
Accepts incoming connection on socket given by socket
. Connection information is returned in variables address
and
len
.
syscalls_sockAccept4
(syscalls_sys_accept4
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, struct sockaddr *, address, 1);
GETFROMSTACK(ustack, socklen_t *,address_len, 2);
GETFROMSTACK(ustack, int, flags, 3);
syscalls_sockBind
(syscalls_sys_bind
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, const struct sockaddr *, address, 1);
GETFROMSTACK(ustack, socklen_t, address_len, 2);
syscalls_sockConnect
(syscalls_sys_connect
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, const struct sockaddr *, address, 1);
GETFROMSTACK(ustack, socklen_t, address_len, 2);
syscalls_sockGetPeerName
(syscalls_sys_getpeername
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, struct sockaddr *, address, 1);
GETFROMSTACK(ustack, socklen_t *, address_len, 2);
syscalls_sockGetSockName
(syscalls_sys_getsockname
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, struct sockaddr *, address, 1);
GETFROMSTACK(ustack, socklen_t *, address_len, 2);
syscalls_sockSetSockOpt
(syscalls_sys_setsockopt
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, int, level, 1);
GETFROMSTACK(ustack, int, optname, 2);
GETFROMSTACK(ustack, const void *, optval, 3);
GETFROMSTACK(ustack, socklen_t, optlen, 4);
syscalls_sockGetSockOpt
(syscalls_sys_getsockopt
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, int, level, 1);
GETFROMSTACK(ustack, int, optname, 2);
GETFROMSTACK(ustack, void *, optval, 3);
GETFROMSTACK(ustack, socklen_t *, optlen, 4);
syscalls_sockListen
(syscalls_sys_listen
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, int, backlog, 1);
syscalls_sockRecvFrom
(syscalls_sys_recvfrom
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, void *, message, 1);
GETFROMSTACK(ustack, size_t, length, 2);
GETFROMSTACK(ustack, int, flags, 3);
GETFROMSTACK(ustack, struct sockaddr *, src_addr, 4);
GETFROMSTACK(ustack, socklen_t *, src_len, 5);
syscalls_sockSentTo
(syscalls_sys_sendto
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, const void *, message, 1);
GETFROMSTACK(ustack, size_t, length, 2);
GETFROMSTACK(ustack, int, flags, 3);
GETFROMSTACK(ustack, const struct sockaddr *, dest_addr, 4);
GETFROMSTACK(ustack, socklen_t, dest_len, 5);
syscalls_sockSocket
(syscalls_sys_socket
)#
GETFROMSTACK(ustack, int, domain, 0);
GETFROMSTACK(ustack, int, type, 1);
GETFROMSTACK(ustack, int, protocol, 2);
syscalls_sockShutdown
(syscalls_sys_shutdown
)#
GETFROMSTACK(ustack, int, socket, 0);
GETFROMSTACK(ustack, int, how, 1);