Crossfire Server, Branch 1.12
R12190
|
Socket structure, represents a client-server connection. More...
#include <newserver.h>
Data Fields | |
uint8 | anims_sent [MAXANIMNUM] |
What animations we sent. | |
uint32 | can_write:1 |
Can we write to this socket? | |
uint32 | cs_version |
uint32 | darkness:1 |
True if client wants darkness information. | |
uint32 | facecache:1 |
If true, client is caching images. | |
uint8 * | faces_sent |
This is a bitmap on sent face status. | |
size_t | faces_sent_len |
This is the number of elements allocated in faces_sent[]. | |
uint8 | faceset |
Set the client is using, default 0. | |
int | fd |
uint32 | has_readable_type:1 |
If true client accept additional text information used to arrange text in books, scrolls, or scripted dialogs. | |
char * | host |
Which host it is connected from (ip address). | |
SockList | inbuf |
If we get an incomplete packet, this is used to hold the data. | |
uint32 | is_bot:1 |
Client shouldn't be reported to metaserver. | |
struct Map | lastmap |
uint16 | look_position |
Start of drawing of look window. | |
sint8 | map_scroll_x |
sint8 | map_scroll_y |
uint8 | mapx |
uint8 | mapy |
How large a map the client wants. | |
uint32 | monitor_spells:1 |
Client wishes to be informed when their spell list changes. | |
uint32 | newmapcmd:1 |
Send newmap command when entering new map SMACFIGGEN. | |
uint8 | num_look_objects |
The maximum number of objects to show on the ground view; this number includes the prev/next group fake items. | |
buffer_struct | outputbuffer |
For undeliverable data. | |
uint8 | password_fails |
How many times the player has failed to give the right password. | |
uint32 | sc_version |
Versions of the client. | |
uint32 | sound |
Client sound mode. | |
sint8 | sounds_this_tick |
Number of sounds sent this tick. | |
struct statsinfo | stats |
enum Sock_Status | status |
uint32 | supported_readables |
Each bit is a readable supported by client. | |
uint32 | tick:1 |
Client wishes to get tick commands. | |
uint32 | update_look:1 |
If true, we need to send the look window. | |
uint32 | want_pickup:1 |
Client wants pickup information when logging in. |
Socket structure, represents a client-server connection.
Definition at line 115 of file newserver.h.
What animations we sent.
Definition at line 122 of file newserver.h.
Referenced by add_object_to_socklist(), esrv_send_animation(), init_connection(), and map2_add_ob().
Can we write to this socket?
Definition at line 132 of file newserver.h.
Referenced by do_server(), init_connection(), write_socket_buffer(), and Write_To_Socket().
Definition at line 141 of file newserver.h.
Referenced by add_me_cmd(), and version_cmd().
True if client wants darkness information.
Definition at line 130 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
If true, client is caching images.
Definition at line 128 of file newserver.h.
Referenced by esrv_send_face(), init_connection(), set_face_mode_cmd(), and set_up_cmd().
This is a bitmap on sent face status.
Definition at line 121 of file newserver.h.
Referenced by add_object_to_socklist(), add_player(), append_spell(), do_server(), esrv_new_player(), esrv_send_animation(), esrv_send_face(), free_player(), init_connection(), init_server(), map2_add_ob(), send_image_sums(), and send_smooth().
This is the number of elements allocated in faces_sent[].
Definition at line 120 of file newserver.h.
Referenced by do_server(), and init_connection().
Set the client is using, default 0.
Definition at line 144 of file newserver.h.
Referenced by esrv_send_face(), init_connection(), send_image_sums(), and set_up_cmd().
Definition at line 117 of file newserver.h.
Referenced by add_to_buffer(), do_server(), free_newsocket(), handle_client(), init_connection(), init_server(), send_tick(), write_socket_buffer(), and Write_To_Socket().
If true client accept additional text information used to arrange text in books, scrolls, or scripted dialogs.
Definition at line 133 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
char* socket_struct::host |
Which host it is connected from (ip address).
Definition at line 125 of file newserver.h.
Referenced by check_login(), command_banish(), do_server(), free_newsocket(), get_who_escape_code_value(), init_connection(), leave(), and version_cmd().
If we get an incomplete packet, this is used to hold the data.
Definition at line 124 of file newserver.h.
Referenced by add_player(), free_newsocket(), handle_client(), and init_connection().
Client shouldn't be reported to metaserver.
Definition at line 137 of file newserver.h.
Referenced by get_who_escape_code_value(), init_connection(), list_players(), metaserver_update(), and set_up_cmd().
struct Map socket_struct::lastmap |
Definition at line 118 of file newserver.h.
Referenced by check_space_for_heads(), esrv_map_scroll(), init_connection(), map2_add_ob(), map2_delete_layer(), and map_newmap_cmd().
Start of drawing of look window.
Definition at line 142 of file newserver.h.
Referenced by apply_cmd(), get_player(), and init_connection().
Definition at line 119 of file newserver.h.
Referenced by esrv_map_scroll(), init_connection(), and map_newmap_cmd().
Definition at line 119 of file newserver.h.
Referenced by esrv_map_scroll(), init_connection(), and map_newmap_cmd().
Definition at line 143 of file newserver.h.
Referenced by esrv_map_scroll(), init_connection(), look_at_cmd(), make_sure_not_seen(), make_sure_seen(), set_up_cmd(), and update_all_los().
How large a map the client wants.
Definition at line 143 of file newserver.h.
Referenced by esrv_map_scroll(), init_connection(), look_at_cmd(), make_sure_not_seen(), make_sure_seen(), set_up_cmd(), and update_all_los().
Client wishes to be informed when their spell list changes.
Definition at line 135 of file newserver.h.
Referenced by esrv_add_spells(), esrv_remove_spell(), esrv_update_spells(), esrv_update_stats(), get_player(), init_connection(), and set_up_cmd().
Send newmap command when entering new map SMACFIGGEN.
Definition at line 129 of file newserver.h.
Referenced by init_connection(), map_newmap_cmd(), and set_up_cmd().
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 149 of file newserver.h.
Referenced by init_connection(), and set_up_cmd().
For undeliverable data.
Definition at line 126 of file newserver.h.
Referenced by add_to_buffer(), init_connection(), and write_socket_buffer().
How many times the player has failed to give the right password.
Definition at line 127 of file newserver.h.
Referenced by init_connection().
Versions of the client.
Definition at line 141 of file newserver.h.
Referenced by add_me_cmd(), esrv_update_stats(), and version_cmd().
Client sound mode.
Definition at line 139 of file newserver.h.
Referenced by init_connection(), play_sound_player_only(), send_background_music(), and set_up_cmd().
Number of sounds sent this tick.
Definition at line 148 of file newserver.h.
Referenced by play_sound_player_only(), and process_players1().
struct statsinfo socket_struct::stats |
Definition at line 123 of file newserver.h.
Referenced by esrv_update_stats(), free_newsocket(), and init_connection().
Definition at line 116 of file newserver.h.
Referenced by add_me_cmd(), add_to_buffer(), command_kick(), do_server(), handle_client(), init_connection(), init_server(), leave(), Send_With_Handling(), write_socket_buffer(), and Write_To_Socket().
Each bit is a readable supported by client.
Definition at line 140 of file newserver.h.
Referenced by init_connection(), and toggle_extended_text_cmd().
Client wishes to get tick commands.
Definition at line 136 of file newserver.h.
Referenced by do_server(), init_connection(), and set_up_cmd().
If true, we need to send the look window.
Definition at line 131 of file newserver.h.
Referenced by apply_cmd(), do_server(), get_player(), and init_connection().
Client wants pickup information when logging in.
Definition at line 138 of file newserver.h.
Referenced by esrv_send_pickup(), init_connection(), and set_up_cmd().