Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Character Server Core Routines
[Character Server Routines]


Data Structures

struct  mmo_map_server
 Map Server Data. More...

Defines

#define MAX_SERVERS   30
 max number of char-servers (and account_id values: 0 to max-1)
#define MAX_MAP_SERVERS   30
 max number of map-servers (and account_id values: 0 to max-1)

Functions

int search_character_index (char *character_name)
 Search for a character name.
unsigned char mapif_sendall (unsigned int len)
 Send packet to all Map Servers.
unsigned char mapif_sendallwos (int sfd, unsigned int len)
 Packet send to all map-servers, except one (wos: without our self).
void mapif_send (int fd, unsigned int len)
 Sends packet to a Map Server.
void char_log (char *fmt,...)
 Logging function.

Variables

mmo_charstatus * char_dat
signed char * online_chars
 same size of char_dat, and id value of current server (or 0)
int char_num
int server_fd [MAX_MAP_SERVERS]
 Map Server Sockets.

Function Documentation

void mapif_send int  fd,
unsigned int  len
 

Sends packet to a Map Server.

Parameters:
fd Socket to send into.
len Packet length.

unsigned char mapif_sendall unsigned int  len  ) 
 

Send packet to all Map Servers.

Parameters:
len Packet length.
Returns:
Number of servers contacted.

unsigned char mapif_sendallwos int  sfd,
unsigned int  len
 

Packet send to all map-servers, except one (wos: without our self).

Parameters:
sfd Socket to skip.
len Packet length.
Returns:
Number of servers contacted.

int search_character_index char *  character_name  ) 
 

Search for a character name.

Returns:
-1 if not found, index in char_dat[] if found, -2 (if found, but not with right case sensitive name)


Variable Documentation

int server_fd[MAX_MAP_SERVERS]
 

Map Server Sockets.

Connection to each Map Servers.


Generated on Fri Apr 28 10:20:06 2006 for OpenAthena by  doxygen 1.4.4