#include "directconn.h"
#include "directconn_private.h"
#include <stdlib.h>
#include <pthread.h>
#include "util.h"
#include "debug.h"
#include "berkeleyapi.h"
#include <unistd.h>
Go to the source code of this file.
Functions | |
errorcode | start_direct_conn (peer_conn_info_t *info) |
starts the direct connection process by creating a detached thread to make the connection | |
void * | run_direct_conn_connect (void *arg) |
the entry point for the started thread that actually creates the direct connection |
Definition in file directconn.c.
|
the entry point for the started thread that actually creates the direct connection
Definition at line 63 of file directconn.c. References peer_conn_info::buddy, peer_sock_desc::buddy, CHECK_NOT_NULL, DBG_DIR_CONN, DEBUG, direct_conn_connect_arg_t, peer_conn_info::direct_conn_status, ERROR_NULL_ARG_1, buddy_info::ext_ip, buddy_info::ext_port, direct_conn_connect_arg::info, safe_free(), and peer_conn_info::socks. Referenced by start_direct_conn(). |
|
starts the direct connection process by creating a detached thread to make the connection Allocates a direct_conn_arg_t structure that it expects the started thread to free.
Definition at line 34 of file directconn.c. References CHECK_NOT_NULL, direct_conn_connect_arg_t, ERROR_NULL_ARG_1, errorcode, direct_conn_connect_arg::info, peer_conn_info_t, run_direct_conn_connect(), and safe_free(). Referenced by peer_fsm_start_direct_conn(). |