binaryninja/personal/scc-docs/create_tcp4_connection.txt

17 lines
652 B
Plaintext
Raw Normal View History

2019-04-03 14:46:40 +01:00
create_tcp4_connection
======================
:title: Shellcode Compiler Runtime
---------------------------------------------
int create_tcp4_connection(uint32_t ip, uint16_t port);
---------------------------------------------
Creates a new TCP connection on port `port` to IPv4 address `ip`. The `IPV4_ADDR` macro can be used to construct
an IP address from four octets easily. Returns an open socket handle, or the negation of the error code on error.
See also
--------
link:create_tcp6_connection.html[create_tcp6_connection],
link:create_udp4_connection.html[create_udp4_connection],
link:create_udp6_connection.html[create_udp6_connection]