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 (netlib::MessageBuffer *buffer, const char *namespace_, const char *command)
static smart_ptr
< netlib::MessageBuffer
aesop::createMessageFromString (const char *namespace_, const char *command, const char *data)
static smart_ptr
< netlib::MessageBuffer
aesop::createMessageFromSStream (const char *namespace_, const char *command, const std::ostringstream &oss)

smart_ptr< netlib::MessageBufferaesop::createTcpConnectMessage (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::MessageBufferaesop::createNotifyErrorMessage (eErrorCode errorCode, const char *message)
 Message: Notify Error
From: Server
To: Client
General error message from client to server.
smart_ptr< netlib::MessageBufferaesop::createConversationDialogMessage (int localPlayerId, const char *conversationGuid, int dialogId, const char *dialogData)
 Message: Conversation Dialog
From: Server
To: Client

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

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

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

smart_ptr< netlib::MessageBufferaesop::createNewGameMessage (int playerId)
 Message: New Game
From: Client
To: Server