![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Include dependency graph for ex_network.c:Go to the source code of this file.
Macros | |
| #define | CLIENT 1 |
| #define | SERVER 0 |
Functions | |
| int | main (int argc, char **argv) |
| void | process_args (int argc, char **argv, char **address, char **server, char **port, int *nb, int *ip_version, int *udp_mode) |
| void | usage (void) |
Variables | |
| int | ip_mode = 0 |
| int | mode = -1 |
| Network for managing conenctions. | |
| int | NB_ATTEMPTS = 3 |
| NETWORK * | netw = NULL |
| Network for server mode, accepting incomming. | |
| NETWORK * | netw_server = NULL |
| static pthread_t | netw_thr |
| int | use_udp = 0 |
| #define CLIENT 1 |
Definition at line 33 of file ex_network.c.
| #define SERVER 0 |
Definition at line 32 of file ex_network.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 147 of file ex_network.c.
References _nstr, _str, add_threaded_process(), addr, char_to_nstr(), CLIENT, destroy_threaded_pool(), DIRECT_PROC, free_nstr, FreeNoLog, get_net_datas(), N_SOCKET::ip, ip_mode, NETWORK::link, LOG_DEBUG, LOG_ERR, LOG_INFO, LOG_NOTICE, manage_client(), mode, n_log, NB_ATTEMPTS, netw, netw_accept_from(), netw_accept_from_ex(), netw_bind_udp(), netw_close(), netw_connect(), netw_connect_udp(), netw_make_listening(), netw_server, netw_setsockopt(), netw_start_thr_engine(), netw_thr, netw_udp_recvfrom(), netw_udp_sendto(), netw_wait_msg(), NETWORK_WAIT_CLOSE_TIMEOUT, new_thread_pool(), port, process_args(), recv_udp_data(), refresh_thread_pool(), send_net_datas(), send_udp_data(), SERVER, set_log_level(), sigchld_handler_installer(), thread_pool, u_sleep(), use_udp, and wait_for_threaded_pool().
Here is the call graph for this function:| void process_args | ( | int | argc, |
| char ** | argv, | ||
| char ** | address, | ||
| char ** | server, | ||
| char ** | port, | ||
| int * | nb, | ||
| int * | ip_version, | ||
| int * | udp_mode | ||
| ) |
Definition at line 58 of file ex_network.c.
References getoptret, LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, LOG_NULL, n_log, NETWORK_IPV4, NETWORK_IPV6, set_log_level(), and usage().
Here is the call graph for this function:| void usage | ( | void | ) |
Definition at line 45 of file ex_network.c.
| int ip_mode = 0 |
| int mode = -1 |
Network for managing conenctions.
Definition at line 40 of file ex_network.c.
| int NB_ATTEMPTS = 3 |
| NETWORK * netw = NULL |
Network for server mode, accepting incomming.
Definition at line 38 of file ex_network.c.
Referenced by _netw_capture_error(), _sse_read_byte(), _sse_write(), client_worker_echo(), client_worker_fast(), main(), main(), manage_client(), n_netw_clear_errors(), n_netw_get_error(), n_netw_get_error_count(), netw_accept_from_ex(), netw_add_msg(), netw_add_msg_ex(), netw_bind_udp(), netw_close(), netw_connect(), netw_connect_ex(), netw_connect_udp(), netw_get_msg(), netw_get_queue_status(), netw_get_state(), netw_make_listening(), netw_new(), netw_pool_add(), netw_pool_broadcast(), netw_pool_netw_close(), netw_pool_remove(), netw_recv_func(), netw_send_func(), netw_send_ident(), netw_send_ping(), netw_send_position(), netw_send_quit(), netw_send_string_to(), netw_send_string_to_all(), netw_set(), netw_set_blocking(), netw_set_crypto(), netw_set_crypto_chain(), netw_set_crypto_chain_pem(), netw_set_crypto_pem(), netw_set_user_id(), netw_setsockopt(), netw_ssl_connect(), netw_ssl_connect_client(), netw_ssl_do_handshake(), netw_ssl_set_ca(), netw_ssl_set_client_cert(), netw_ssl_set_verify(), netw_start_thr_engine(), netw_stop_thr_engine(), netw_udp_recvfrom(), netw_udp_sendto(), netw_wait_msg(), poll_network_msgs(), recv_data(), recv_ssl_data(), recv_udp_data(), run_client(), run_server(), send_data(), send_net_datas(), send_ssl_data(), send_udp_data(), and userlist_add_user().
| NETWORK* netw_server = NULL |
Definition at line 37 of file ex_network.c.
|
static |
| int use_udp = 0 |