_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the source code of this file.
Classes | |
| class | ServerStruct |
| class | Session |
| class | SessionPool |
netdriver.h - Net driver header. | |
| #define | DEFAULT_PORT 7775 |
| #define | DEFAULT_MAX_CONN 500 |
| #define | DEFAULT_SESSION_TIMEOUT 900 |
| #define | DEFAULT_POLLING_DELAY 250 |
| #define | MAX_USERNAME_LENGTH 32 |
| #define | MAX_PASSWORD_LENGTH 32 |
| #define | MAX_GAMENAME_LENGTH 32 |
| #define | MAX_VERSION_LENGTH 8 |
| ServerStruct | Server |
| SessionPool * | Pool |
| external reference to session tracking. More... | |
| void | Send (Session *session, const char *msg) |
| int | ServerInit (int port) |
| void | ServerQuit (void) |
| int | UpdateSessions (void) |
| #define DEFAULT_MAX_CONN 500 |
| #define DEFAULT_POLLING_DELAY 250 |
| #define DEFAULT_PORT 7775 |
| #define DEFAULT_SESSION_TIMEOUT 900 |
| #define MAX_GAMENAME_LENGTH 32 |
| #define MAX_PASSWORD_LENGTH 32 |
| #define MAX_USERNAME_LENGTH 32 |
| #define MAX_VERSION_LENGTH 8 |
| void Send | ( | Session * | session, |
| const char * | msg | ||
| ) |
Send a message to a session
| session | Session to send the message to |
| msg | Message to send |
| int ServerInit | ( | int | port | ) |
Initialize the server
| port | Defines the port to which the server will bind. |
| void ServerQuit | ( | void | ) |
ServerQuit: Releases the server socket.
| int UpdateSessions | ( | void | ) |
Accepts new connections, receives data, manages buffers,
| SessionPool* Pool |
external reference to session tracking.
| ServerStruct Server |
1.8.9.1
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.