binaryninja/scc-docs/socketpair.txt
Giulio De Pasquale 52e9dc828b dindon
2018-12-13 18:39:52 +00:00

17 lines
524 B
Plaintext

socketpair
==========
:title: Shellcode Compiler Runtime
---------------------------------------------
int socketpair(int domain, int type, int protocol, int fds[2]);
---------------------------------------------
Creates two connected sockets of the given type.
IMPORTANT: The `domain` parameter must use the `PF_*` family of constants. The `AF_*` family of constants do not
have the correct value for the `socket` function on BSD. This is to facilitate cross-platform code.
See also
--------
link:socket.html[socket]