|
Crossfire Server
1.75.0
|
Defines various structures and values that are used for the new client server communication method. More...
Go to the source code of this file.
Data Structures | |
| struct | listen_info |
| Contains parameters for socket() and bind() for listening sockets. More... | |
| struct | Map |
| One map for a player. More... | |
| struct | map_cell_struct |
| One map cell, as sent to the client. More... | |
| struct | Socket_Info |
| Holds some system-related information. More... | |
| struct | socket_struct |
| Socket structure, represents a client-server connection. More... | |
| struct | statsinfo |
| Contains the last range/title information sent to client. More... | |
Macros | |
| #define | DEFAULT_NUM_LOOK_OBJECTS 50 |
| Default value for the number of objects to send for the 'look' window (container or ground view). More... | |
| #define | MAX_CLIENT_X (MAP_CLIENT_X+MAX_HEAD_OFFSET) |
| #define | MAX_CLIENT_Y (MAP_CLIENT_Y+MAX_HEAD_OFFSET) |
| #define | MAX_HEAD_OFFSET 8 |
| This basically defines the largest size an archetype may be - it is used for allocation of some structures, as well as determining how far we should look for the heads of big images. More... | |
| #define | MAX_NUM_LOOK_OBJECTS 100 |
| The upper bound for the number of objects to send for the 'look' window (container or ground view). More... | |
| #define | MAX_PASSWORD_FAILURES 5 |
| How many times we are allowed to give the wrong password before being kicked. More... | |
| #define | MAXANIMNUM 2000 |
| True max is 16383 given current map compaction method. More... | |
| #define | MIN_NUM_LOOK_OBJECTS 3 /* 3=prev group, one object, next group */ |
| The lower bound for the number of objects to send for the 'look' window (container or ground view). More... | |
| #define | NS_FACESENT_FACE 0x1 |
| Bitmask for the faces_sent[] array - what portion of the face have we sent? More... | |
| #define | NS_FACESENT_SMOOTH 0x2 |
| #define | VERSION_CS 1023 |
| Version >= 1023 understand setup cmd. More... | |
| #define | VERSION_INFO "Crossfire Server" |
| #define | VERSION_SC 1030 |
Enumerations | |
| enum | Sock_Status { Ns_Avail, Ns_Add, Ns_Dead } |
| What state a socket is in. More... | |
Variables | |
| Socket_Info | socket_info |
| Socket information. More... | |
Defines various structures and values that are used for the new client server communication method.
Values defined here are only used on the server side code. For shared client/server values, see newclient.h
Definition in file newserver.h.
| #define DEFAULT_NUM_LOOK_OBJECTS 50 |
Default value for the number of objects to send for the 'look' window (container or ground view).
Definition at line 22 of file newserver.h.
Referenced by init_connection().
| #define MAX_CLIENT_X (MAP_CLIENT_X+MAX_HEAD_OFFSET) |
Definition at line 48 of file newserver.h.
| #define MAX_CLIENT_Y (MAP_CLIENT_Y+MAX_HEAD_OFFSET) |
Definition at line 49 of file newserver.h.
| #define MAX_HEAD_OFFSET 8 |
This basically defines the largest size an archetype may be - it is used for allocation of some structures, as well as determining how far we should look for the heads of big images.
Definition at line 46 of file newserver.h.
Referenced by draw_client_map2(), and esrv_map_scroll().
| #define MAX_NUM_LOOK_OBJECTS 100 |
The upper bound for the number of objects to send for the 'look' window (container or ground view).
Definition at line 28 of file newserver.h.
Referenced by set_up_cmd().
| #define MAX_PASSWORD_FAILURES 5 |
How many times we are allowed to give the wrong password before being kicked.
Definition at line 88 of file newserver.h.
Referenced by wrong_password().
| #define MAXANIMNUM 2000 |
True max is 16383 given current map compaction method.
Definition at line 57 of file newserver.h.
| #define MIN_NUM_LOOK_OBJECTS 3 /* 3=prev group, one object, next group */ |
The lower bound for the number of objects to send for the 'look' window (container or ground view).
Definition at line 16 of file newserver.h.
Referenced by set_up_cmd().
| #define NS_FACESENT_FACE 0x1 |
Bitmask for the faces_sent[] array - what portion of the face have we sent?
Definition at line 141 of file newserver.h.
Referenced by add_object_to_socklist(), append_spell(), esrv_draw_look(), esrv_new_player(), esrv_send_animation(), esrv_send_face(), esrv_update_item(), init_connection(), knowledge_process_incremental(), knowledge_send_info(), map2_add_ob(), quest_send_initial_states(), quest_set_state(), send_account_players(), send_image_sums(), send_skill_info(), and send_smooth().
| #define NS_FACESENT_SMOOTH 0x2 |
Definition at line 142 of file newserver.h.
Referenced by map2_add_ob(), and send_smooth().
| #define VERSION_CS 1023 |
Version >= 1023 understand setup cmd.
Definition at line 153 of file newserver.h.
Referenced by init_connection(), and version_cmd().
| #define VERSION_INFO "Crossfire Server" |
Definition at line 155 of file newserver.h.
Referenced by init_connection().
| #define VERSION_SC 1030 |
Definition at line 154 of file newserver.h.
Referenced by init_connection(), and version_cmd().
| enum Sock_Status |
What state a socket is in.
| Enumerator | |
|---|---|
| Ns_Avail | |
| Ns_Add | |
| Ns_Dead | |
Definition at line 68 of file newserver.h.
| Socket_Info socket_info |
Socket information.
Definition at line 52 of file init.cpp.
Referenced by check_all_fds(), command_recollect(), do_server(), new_connection(), and Send_With_Handling().