_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <stdlib.h>#include <stdio.h>#include <string.h>#include "stratagus.h"#include "cmd.h"#include "netdriver.h"#include "db.h"#include "games.h"cmd.cpp - Client/Server Command Interpreter. | |
| #define | GetNextArg(buf, arg) |
| #define | GetLastArg(buf, arg) |
| #define | GetNextAndOptionalArg(buf, arg1, arg2) |
| #define | SkipSpaces(buf) |
| #define | CheckExtraParameter(buf) |
| static int | Parse1Arg (char *buf, char **arg1) |
| static int | Parse1or2Args (char *buf, char **arg1, char **arg2) |
| static int | Parse4Args (char *buf, char **arg1, char **arg2, char **arg3, char **arg4) |
| static int | Parse5or6Args (char *buf, char **arg1, char **arg2, char **arg3, char **arg4, char **arg5, char **arg6) |
| static void | ParsePing (Session *session) |
| static void | ParseUser (Session *session, char *buf) |
| static void | ParseRegister (Session *session, char *buf) |
| static void | ParseCreateGame (Session *session, char *buf) |
| static void | ParseCancelGame (Session *session, char *buf) |
| static void | ParseStartGame (Session *session, char *buf) |
| static void | ParseListGames (Session *session, char *buf) |
| static void | ParseJoinGame (Session *session, char *buf) |
| static void | ParsePartGame (Session *session, char *buf) |
| static void | ParseEndGame (Session *session, char *buf) |
| static void | ParseMsg (Session *session, char *buf) |
| static void | ParseBuffer (Session *session) |
| int | UpdateParser (void) |
| #define CheckExtraParameter | ( | buf | ) |
| #define GetLastArg | ( | buf, | |
| arg | |||
| ) |
| #define GetNextAndOptionalArg | ( | buf, | |
| arg1, | |||
| arg2 | |||
| ) |
| #define GetNextArg | ( | buf, | |
| arg | |||
| ) |
| #define SkipSpaces | ( | buf | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
ParseBuffer: Handler client/server interaction.
| session | Current session. |
|
static |
Parse CANCELGAME
|
static |
Parse CREATEGAME
|
static |
Parse ENDGAME
|
static |
Parse JOINGAME
|
static |
Parse LISTGAMES
|
static |
Parse MSG
|
static |
Parse PARTGAME
|
static |
Parse PING
|
static |
Parse REGISTER
|
static |
Parse STARTGAME
|
static |
Parse USER
| int UpdateParser | ( | void | ) |
Parse all session buffers
1.8.9.1
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.