Namespaces | Enumerations

protocol.h File Reference

#include "netlib/netlib.h"
#include "aesop-base/errors.h"
Include dependency graph for protocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  aesop

Enumerations

enum  aesop::eDefaultPorts {
  aesop::eDefaultPort_clientUdp = 20051,
  aesop::eDefaultPort_serverUdp = 20050,
  aesop::eDefaultPort_serverTcp = 20051,
  aesop::eDefaultPort_Invalid = 0
}
 

these are the default TCP/UDP ports used by the AESOP engine.

More...

Functions

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