binaryninja/personal/scc-docs/bind.txt

26 lines
839 B
Plaintext
Raw Normal View History

2019-04-03 14:46:40 +01:00
bind
====
:title: Shellcode Compiler Runtime
---------------------------------------------
int bind(int sockfd, const struct sockaddr* addr, socklen_t addrlen);
---------------------------------------------
Binds the socket `sockfd` to the address `addr`. The following address types are supported:
---------------------------------------------
struct sockaddr_in;
struct sockaddr_in6;
struct sockaddr_un;
---------------------------------------------
IMPORTANT: The socket family member of the address structure must use the `AF_*` constants. The
`PF_*` constants must only be used when creating sockets. This is to automatically set the length
field present only on BSD. The length fields are not explicitly present in this runtime.
See also
--------
link:accept.html[accept],
link:listen.html[listen],
link:socket.html[socket]