Namespaces | Functions

protocol.cpp File Reference

#include "protocol.h"
#include <sstream>
#include "common/wave_ex.h"
#include "datahash/datahash_text.h"
#include "datahash/datahash_util.h"
#include "netlib/netlib.h"
#include "perf/perf.h"
Include dependency graph for protocol.cpp:

Go to the source code of this file.

Namespaces

namespace  aesop

Functions

static void aesop::addHeader (IO netlib::MessageBuffer *buffer, IN const char *namespace_, IN const char *command)
static smart_ptr
< netlib::MessageBuffer > 
aesop::createMessageFromString (IN const char *namespace_, IN const char *command, IN const char *data)
static smart_ptr
< netlib::MessageBuffer > 
aesop::createMessageFromSStream (IN const char *namespace_, IN const char *command, IN const std::ostringstream &oss)

smart_ptr< netlib::MessageBuffer > aesop::createTcpConnectMessage (IN long token)
 Message: TcpConnect
From: Client
To: Server
Clients must send one of these whenever they set up a TCP connection with the server.
smart_ptr< netlib::MessageBuffer > aesop::createNotifyErrorMessage (IN eErrorCode errorCode, IN const char *message)
 Message: Notify Error
From: Server
To: Client
General error message from client to server.
smart_ptr< netlib::MessageBuffer > aesop::createConversationDialogMessage (IN int localPlayerId, IN const char *conversationGuid, IN int dialogId, IN const char *dialogData)
 Message: Conversation Dialog
From: Server
To: Client

smart_ptr< netlib::MessageBuffer > aesop::createConversationReplyMessage (IN int playerId, IN const char *conversationGuid, IN int dialogId, IN const char *reply)
 Message: Conversation Reply
From: Client
To: Server

smart_ptr< netlib::MessageBuffer > aesop::createRefreshConversationMessage (IN int playerId, IN const char *conversationGuid)
 Message: Refresh Conversation
From: Client
To: Server

smart_ptr< netlib::MessageBuffer > aesop::createTerminateConversationMessage (IN int playerId, IN const char *conversationGuid)
 Message: Terminate Conversation
From: Server
To: Client

smart_ptr< netlib::MessageBuffer > aesop::createNewGameMessage (IN int playerId)
 Message: New Game
From: Client
To: Server