#include "def.h"
#include "errorcodes.h"
Go to the source code of this file.
Functions | |
errorcode | resolveIP (char *ip_or_name, ip_t *ip) |
resolves a hostname or IP to a 32bit IP number | |
errorcode | bindSocket (port_t port_to_bind, sock_t *sd) |
binds a socket | |
errorcode | tcp_connect (ip_t ip, port_t port, sock_t *sd) |
creates a TCP connection |
Definition in file nethelp.h.
|
binds a socket
Definition at line 55 of file nethelp.c. References CHECK_NOT_NULL, DBG_NETWORK, DBG_PORT, DEBUG, ERROR_NULL_ARG_2, and errorcode. Referenced by capture_flooded_synack(), natblaster_connect(), and natblaster_server(). |
|
resolves a hostname or IP to a 32bit IP number
Definition at line 30 of file nethelp.c. References CHECK_NOT_NULL, ERROR_NULL_ARG_1, ERROR_NULL_ARG_2, and errorcode. Referenced by main(). |
|
creates a TCP connection
Definition at line 88 of file nethelp.c. References CHECK_NOT_NULL, DBG_ALL, DEBUG, ERROR_NULL_ARG_3, and errorcode. Referenced by peer_fsm_conn_again(), and peer_fsm_start(). |