Crossfire Server, Trunk
newserver.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  listen_info
 
struct  Map
 
struct  map_cell_struct
 
struct  Socket_Info
 
struct  socket_struct
 
struct  statsinfo
 

Macros

#define DEFAULT_NUM_LOOK_OBJECTS   50
 
#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
 
#define MAX_NUM_LOOK_OBJECTS   100
 
#define MAX_PASSWORD_FAILURES   5
 
#define MAXANIMNUM   2000
 
#define MIN_NUM_LOOK_OBJECTS   3 /* 3=prev group, one object, next group */
 
#define NS_FACESENT_FACE   0x1
 
#define NS_FACESENT_SMOOTH   0x2
 
#define VERSION_CS   1023
 
#define VERSION_INFO   "Crossfire Server"
 
#define VERSION_SC   1030
 

Enumerations

enum  Sock_Status { Ns_Avail, Ns_Add, Ns_Dead }
 

Variables

Socket_Info socket_info
 

Detailed Description

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.

Macro Definition Documentation

◆ DEFAULT_NUM_LOOK_OBJECTS

#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.

◆ MAX_CLIENT_X

#define MAX_CLIENT_X   (MAP_CLIENT_X+MAX_HEAD_OFFSET)

Definition at line 44 of file newserver.h.

◆ MAX_CLIENT_Y

#define MAX_CLIENT_Y   (MAP_CLIENT_Y+MAX_HEAD_OFFSET)

Definition at line 45 of file newserver.h.

◆ 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.

Definition at line 42 of file newserver.h.

◆ MAX_NUM_LOOK_OBJECTS

#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.

◆ MAX_PASSWORD_FAILURES

#define MAX_PASSWORD_FAILURES   5

How many times we are allowed to give the wrong password before being kicked.

Definition at line 84 of file newserver.h.

◆ MAXANIMNUM

#define MAXANIMNUM   2000

True max is 16383 given current map compaction method.

Definition at line 53 of file newserver.h.

◆ MIN_NUM_LOOK_OBJECTS

#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.

◆ NS_FACESENT_FACE

#define NS_FACESENT_FACE   0x1

Bitmask for the faces_sent[] array - what portion of the face have we sent?

Definition at line 137 of file newserver.h.

◆ NS_FACESENT_SMOOTH

#define NS_FACESENT_SMOOTH   0x2

Definition at line 138 of file newserver.h.

◆ VERSION_CS

#define VERSION_CS   1023

Version >= 1023 understand setup cmd

Definition at line 149 of file newserver.h.

◆ VERSION_INFO

#define VERSION_INFO   "Crossfire Server"

Definition at line 151 of file newserver.h.

◆ VERSION_SC

#define VERSION_SC   1030

Definition at line 150 of file newserver.h.

Enumeration Type Documentation

◆ Sock_Status

What state a socket is in.

Enumerator
Ns_Avail 
Ns_Add 
Ns_Dead 

Definition at line 64 of file newserver.h.

Variable Documentation

◆ socket_info

Socket_Info socket_info

Socket information.

Definition at line 52 of file init.cpp.

Referenced by check_all_fds(), command_recollect(), do_server(), free_all_newserver(), init_connection(), init_server(), and new_connection().