Nilorea Library
C utilities for networking, threading, graphics
|
USERS handling for tiny game apps. More...
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_str.h"
#include "nilorea/n_network.h"
#include "nilorea/n_3d.h"
Go to the source code of this file.
Data Structures | |
struct | N_USER |
USER management cell. More... | |
struct | N_USERLIST |
USER list. More... | |
Macros | |
#define | USERLIST_ALL 0 |
flag to target all users in the list More... | |
#define | USERLIST_ALL_EXCEPT 1 |
flag to target all users in the list except one More... | |
#define | USERLIST_ONE 2 |
flag to target one user in the list More... | |
Functions | |
int | userlist_add_msg_to (N_USERLIST *ulist, N_STR *msg, int id) |
add a N_STR *message to user list (USERLIST_ONE) More... | |
int | userlist_add_msg_to_all (N_USERLIST *ulist, N_STR *msg) |
add a N_STR *message to user list (USERLIST_ALL) More... | |
int | userlist_add_msg_to_all_except (N_USERLIST *ulist, N_STR *msg, int id) |
add a N_STR *message to user list except user 'id' (USERLIST_ALL_EXCEPT) More... | |
int | userlist_add_msg_to_ex (N_USERLIST *ulist, N_STR *msg, int mode, int id) |
add a N_STR *message to user list More... | |
int | userlist_add_user (N_USERLIST *ulist, NETWORK *netw) |
add an user to the list More... | |
int | userlist_del_user (N_USERLIST *ulist, int id) |
delete an user from the list More... | |
int | userlist_destroy (N_USERLIST **ulist) |
destroy and free a N_USERLIST *userlist More... | |
N_USERLIST * | userlist_new (int max) |
create a new N_USERLIST user list with 'max' users More... | |
int | userlist_send_waiting_msgs (N_USERLIST *ulist) |
send all waiting messages ofr each user of the lsit More... | |
int | userlist_set_position_behavior (N_USERLIST *ulist, int id, int nb_rec_pos, int only_last_pos) |
set the position parameters for trajectory processing for user 'id' More... | |
int | userlist_user_add_waiting_msg (N_USERLIST *ulist, int id, N_STR *netmsg) |
add a newtork message to specified user 'id' More... | |
int | userlist_user_send_waiting_msgs (N_USERLIST *ulist, int id) |
send all waiting messages in user 'id' waiting list More... | |