Nilorea Library
C utilities for networking, threading, graphics
|
#include "nilorea/n_common.h"
#include "nilorea/n_str.h"
#include "nilorea/n_list.h"
#include "nilorea/n_hash.h"
#include "nilorea/n_network.h"
#include "nilorea/n_network_msg.h"
#include "nilorea/n_user.h"
#include <allegro5/allegro.h>
#include <allegro5/allegro_audio.h>
#include <allegro5/allegro_acodec.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_ttf.h>
Go to the source code of this file.
Macros | |
#define | HEIGHT 480 |
#define | WIDTH 640 |
Functions | |
int | main (int argc, char *argv[]) |
void | process_args (int argc, char **argv, char **bind_addr, char **port, int *ip_version) |
int | process_clients (NETWORK_POOL *netw_pool, N_USERLIST *userlist) |
void | usage (void) |
#define HEIGHT 480 |
Definition at line 8 of file ex_gui_netserver.c.
#define WIDTH 640 |
Definition at line 7 of file ex_gui_netserver.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 256 of file ex_gui_netserver.c.
References __n_assert, _nstr, _str, active_object, display, DONE, fps_timer, free_nstr, getoptret, HEIGHT, ip_version, key, KEY_CTRL, KEY_DOWN, KEY_ESC, KEY_LEFT, KEY_RIGHT, KEY_SPACE, KEY_UP, list_destroy(), LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, logic_timer, n_abort(), n_log, netw, netw_accept_from_ex(), netw_make_listening(), netw_new_pool(), netw_pool_add(), netw_pool_nbclients(), netw_set_user_id(), netw_start_thr_engine(), NETWORK_IPALL, new_generic_list(), nstrprintf, process_args(), process_clients(), scr_buf, server, set_log_level(), userlist_add_user(), userlist_new(), userlist_send_waiting_msgs(), and WIDTH.
void process_args | ( | int | argc, |
char ** | argv, | ||
char ** | bind_addr, | ||
char ** | port, | ||
int * | ip_version | ||
) |
Definition at line 38 of file ex_gui_netserver.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().
int process_clients | ( | NETWORK_POOL * | netw_pool, |
N_USERLIST * | userlist | ||
) |
Definition at line 154 of file ex_gui_netserver.c.
References __n_assert, free_nstr, HASH_VAL, HT_FOREACH, list_destroy(), list_push(), LOG_DEBUG, LOG_ERR, LOG_INFO, LOG_NOTICE, n_log, NETMSG_GET_BOX, NETMSG_IDENT_REPLY_OK, NETMSG_IDENT_REQUEST, netmsg_make_ping(), NETMSG_PING_REPLY, NETMSG_PING_REQUEST, NETMSG_POSITION, NETMSG_QUIT, NETMSG_STRING, netw, netw_close(), netw_get_ident(), netw_get_msg(), netw_get_ping(), netw_get_state(), netw_msg_get_type(), netw_pool_broadcast(), NETW_RUN, netw_send_ident(), netw_send_ping(), netw_send_quit(), NETW_THR_ENGINE_STARTED, new_generic_list(), read_lock, unlock, userlist_add_msg_to(), userlist_add_msg_to_all(), and userlist_del_user().
Referenced by main().
void usage | ( | void | ) |
Definition at line 26 of file ex_gui_netserver.c.