Atrinik Server 2.5
Data Structures | Defines | Typedefs | Enumerations | Variables
include/newserver.h File Reference

Go to the source code of this file.

Data Structures

struct  MapCell_struct
struct  Map
struct  socket_buffer
struct  socket_struct
struct  Socket_Info_struct
struct  update_file_struct

Defines

#define NUM_LOOK_OBJECTS   15
#define MAP2_FLAG_MULTI   1
#define MAP2_FLAG_NAME   2
#define MAP2_FLAG_PROBE   4
#define MAP2_FLAG_HEIGHT   8
#define MAP2_FLAG_ZOOM   16
#define MAP2_FLAG_ALIGN   32
#define MAP2_FLAG_DOUBLE   64
#define MAP2_FLAG_MORE   128
#define MAP2_FLAG2_ALPHA   1
#define MAP2_FLAG2_ROTATE   2
#define MAP2_FLAG2_INFRAVISION   4
#define MAP2_FLAG_EXT_ANIM   1
#define ANIM_DAMAGE   1
#define ANIM_KILL   2
#define MAP2_MASK_CLEAR   0x2
#define MAP2_MASK_DARKNESS   0x4
#define MAP2_LAYER_CLEAR   255
#define CMD_MAPSTATS_NAME   1
#define CMD_MAPSTATS_MUSIC   2
#define CMD_MAPSTATS_WEATHER   3
#define SOCKET_KEEPALIVE_TIMEOUT   (60 * 5)
#define UPDATES_FILE_NAME   "updates"
#define UPDATES_DIR_NAME   "updates"
#define MAX_PASSWORD_FAILURES   3

Typedefs

typedef struct MapCell_struct MapCell
typedef struct socket_buffer socket_buffer
typedef struct socket_struct socket_struct
typedef struct Socket_Info_struct Socket_Info
typedef struct update_file_struct update_file_struct

Enumerations

enum  Sock_Status {
  Ns_Avail, Ns_Wait, Ns_Add, Ns_Login,
  Ns_Dead, Ns_Zombie
}

Variables

Socket_Info socket_info

Detailed Description

Defines various structures and values that are used for the new client server communication method.

See also:
newclient.h

Definition in file newserver.h.


Define Documentation

#define MAX_PASSWORD_FAILURES   3

Maximum password failures allowed before the server kills the socket.

Definition at line 352 of file newserver.h.

#define NUM_LOOK_OBJECTS   15

How many items to show in the below window. Used in esrv_draw_look().

Definition at line 37 of file newserver.h.

#define SOCKET_KEEPALIVE_TIMEOUT   (60 * 5)

How many seconds must pass since the last keep alive command for the socket to be disconnected.

Definition at line 298 of file newserver.h.

#define UPDATES_DIR_NAME   "updates"

Directory to recursively traverse, looking for files that the client can request for an update.

Definition at line 347 of file newserver.h.

#define UPDATES_FILE_NAME   "updates"

Filename used to store information about the updated files.

Definition at line 343 of file newserver.h.


Typedef Documentation

typedef struct MapCell_struct MapCell

One map cell. Used to hold 'cache' of faces we already sent to the client.

typedef struct socket_buffer socket_buffer

Structure that holds one or more socket buffers that are to be sent to the client.

Holds some system related information.

typedef struct socket_struct socket_struct

This contains basic information on the socket structure.

A single file loaded from the updates directory that the client can request.


Enumeration Type Documentation

Possible socket statuses.

Definition at line 154 of file newserver.h.


Variable Documentation

Socket information.

Definition at line 37 of file init.c.