Crossfire Server, Trunk
|
#include <newserver.h>
Data Fields | |
Account_Chars * | account_chars |
char * | account_name |
uint8_t | anims_sent [MAXANIMNUM] |
uint16_t | container_position |
uint32_t | cs_version |
uint32_t | darkness:1 |
uint32_t | extended_stats:1 |
uint32_t | facecache:1 |
uint8_t * | faces_sent |
size_t | faces_sent_len |
uint8_t | faceset |
int | fd |
bool | heartbeat |
char * | host |
SockList | inbuf |
uint32_t | is_bot:1 |
uint32_t | last_tick |
struct Map | lastmap |
struct listen_info * | listen |
uint8_t | login_method |
uint16_t | look_position |
int8_t | map_scroll_x |
int8_t | map_scroll_y |
uint8_t | mapx |
uint8_t | mapy |
uint32_t | monitor_spells |
uint16_t | notifications |
uint8_t | num_look_objects |
uint8_t | password_fails |
uint32_t | sc_version |
uint32_t | sound |
int8_t | sounds_this_tick |
struct statsinfo | stats |
enum Sock_Status | status |
uint32_t | tick:1 |
uint32_t | update_inventory:1 |
uint32_t | update_look:1 |
uint32_t | want_pickup:1 |
Socket structure, represents a client-server connection.
Definition at line 89 of file newserver.h.
Account_Chars* socket_struct::account_chars |
Detailed information on characters on this account
Definition at line 127 of file newserver.h.
Referenced by account_add_player_cmd(), account_play_cmd(), free_newsocket(), init_connection(), send_account_players(), set_player_socket(), and START_TEST().
char* socket_struct::account_name |
Name of the account logged in on this socket
Definition at line 126 of file newserver.h.
Referenced by account_add_player_cmd(), account_login_cmd(), account_new_cmd(), account_password(), account_play_cmd(), free_newsocket(), init_connection(), init_server(), send_account_players(), and set_player_socket().
uint8_t socket_struct::anims_sent[MAXANIMNUM] |
What animations we sent.
Definition at line 97 of file newserver.h.
Referenced by add_object_to_socklist(), esrv_send_animation(), init_connection(), and map2_add_ob().
uint16_t socket_struct::container_position |
Start of container contents to send to client.
Definition at line 115 of file newserver.h.
Referenced by init_connection().
uint32_t socket_struct::cs_version |
Definition at line 113 of file newserver.h.
Referenced by add_me_cmd(), and version_cmd().
uint32_t socket_struct::darkness |
True if client wants darkness information.
Definition at line 103 of file newserver.h.
Referenced by draw_client_map2(), init_connection(), and set_up_cmd().
uint32_t socket_struct::extended_stats |
Client wants base and maximum statistics information.
Definition at line 109 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
uint32_t socket_struct::facecache |
If true, client is caching images.
Definition at line 102 of file newserver.h.
Referenced by esrv_send_face(), init_connection(), and set_up_cmd().
uint8_t* socket_struct::faces_sent |
This is a bitmap on sent face status.
Definition at line 96 of file newserver.h.
Referenced by add_object_to_socklist(), esrv_send_animation(), esrv_send_face(), free_newsocket(), handle_client(), init_connection(), init_server(), knowledge_send_info(), map2_add_ob(), monsterFight(), new_connection(), reset_faces_sent(), send_account_players(), send_image_sums(), send_skill_info(), send_smooth(), set_player_socket(), and START_TEST().
size_t socket_struct::faces_sent_len |
This is the number of elements allocated in faces_sent[].
Definition at line 95 of file newserver.h.
Referenced by init_connection(), new_connection(), and reset_faces_sent().
uint8_t socket_struct::faceset |
Set the client is using, default 0.
Definition at line 117 of file newserver.h.
Referenced by esrv_send_face(), init_connection(), send_image_sums(), and set_up_cmd().
int socket_struct::fd |
Definition at line 91 of file newserver.h.
Referenced by free_newsocket(), handle_client(), init_connection(), init_listening_socket(), new_connection(), set_output_sock_buf(), and Write_To_Socket().
bool socket_struct::heartbeat |
Client will send hearbeats.
Definition at line 112 of file newserver.h.
Referenced by connection_alive(), init_connection(), and set_up_cmd().
char* socket_struct::host |
Which host it is connected from (ip address).
Definition at line 100 of file newserver.h.
Referenced by account_add_player_cmd(), account_block_create(), account_login_cmd(), account_new_cmd(), account_password(), account_play_cmd(), ask_smooth_cmd(), create_player_cmd(), free_newsocket(), handle_cmd(), init_connection(), kill_object(), request_info_cmd(), send_class_info(), send_face_cmd(), send_race_info(), set_player_socket(), set_up_cmd(), and version_cmd().
SockList socket_struct::inbuf |
If we get an incomplete packet, this is used to hold the data.
Definition at line 99 of file newserver.h.
Referenced by free_newsocket(), handle_client(), init_connection(), and set_player_socket().
uint32_t socket_struct::is_bot |
Client shouldn't be reported to metaserver.
Definition at line 107 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
uint32_t socket_struct::last_tick |
Number of ticks since last communication.
Definition at line 130 of file newserver.h.
Referenced by connection_alive(), and handle_client().
struct Map socket_struct::lastmap |
Definition at line 93 of file newserver.h.
Referenced by check_space_for_heads(), draw_client_map2(), esrv_map_scroll(), init_connection(), map2_add_ob(), map2_delete_layer(), and map_newmap_cmd().
struct listen_info* socket_struct::listen |
Definition at line 92 of file newserver.h.
Referenced by free_all_newserver(), init_listening_socket(), init_server(), and new_connection().
uint8_t socket_struct::login_method |
Login method this client is using
Definition at line 128 of file newserver.h.
Referenced by create_player_cmd(), init_connection(), and set_up_cmd().
uint16_t socket_struct::look_position |
Start of drawing of look window.
Definition at line 114 of file newserver.h.
Referenced by init_connection(), push_ob(), and transport_type_apply().
int8_t socket_struct::map_scroll_x |
Definition at line 94 of file newserver.h.
Referenced by esrv_map_scroll(), handle_scroll(), init_connection(), and map_newmap_cmd().
int8_t socket_struct::map_scroll_y |
Definition at line 94 of file newserver.h.
Referenced by esrv_map_scroll(), handle_scroll(), init_connection(), and map_newmap_cmd().
uint8_t socket_struct::mapx |
Definition at line 116 of file newserver.h.
Referenced by draw_client_map2(), esrv_map_scroll(), init_connection(), and set_up_cmd().
uint8_t socket_struct::mapy |
How large a map the client wants.
Definition at line 116 of file newserver.h.
Referenced by draw_client_map2(), esrv_map_scroll(), init_connection(), and set_up_cmd().
uint32_t socket_struct::monitor_spells |
Client wishes to be informed when their spell list changes.
Definition at line 110 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
uint16_t socket_struct::notifications |
Notifications this client wants to get.
Definition at line 129 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
uint8_t socket_struct::num_look_objects |
The maximum number of objects to show on the ground view; this number includes the prev/next group fake items. Can be set through "num_look_objects" setup option; defaults to DEFAULT_NUM_LOOK_OBJECTS.
Definition at line 122 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
uint8_t socket_struct::password_fails |
How many times the player has failed to give the right password.
Definition at line 101 of file newserver.h.
Referenced by init_connection().
uint32_t socket_struct::sc_version |
Versions of the client.
Definition at line 113 of file newserver.h.
Referenced by add_me_cmd(), map2_add_label(), and version_cmd().
uint32_t socket_struct::sound |
Client sound mode.
Definition at line 111 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
int8_t socket_struct::sounds_this_tick |
Number of sounds sent this tick.
Definition at line 121 of file newserver.h.
Referenced by init_connection().
struct statsinfo socket_struct::stats |
Definition at line 98 of file newserver.h.
Referenced by free_newsocket(), and init_connection().
enum Sock_Status socket_struct::status |
Definition at line 90 of file newserver.h.
Referenced by account_play_cmd(), add_me_cmd(), add_player(), CFGuilds.CFGuildHouses::change_status(), CFGuilds.CFGuild::change_status(), check_all_fds(), create_player_cmd(), do_server(), handle_client(), init_connection(), init_listening_socket(), new_connection(), Send_With_Handling(), and Write_To_Socket().
uint32_t socket_struct::tick |
Client wishes to get tick commands.
Definition at line 106 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
uint32_t socket_struct::update_inventory |
If true, we need to send the inventory list.
Definition at line 105 of file newserver.h.
Referenced by init_connection().
uint32_t socket_struct::update_look |
If true, we need to send the look window.
Definition at line 104 of file newserver.h.
Referenced by book_type_apply(), init_connection(), push_ob(), set_up_cmd(), spellbook_type_apply(), and transport_type_apply().
uint32_t socket_struct::want_pickup |
Client wants pickup information when logging in.
Definition at line 108 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().