Completely rewriting all NetPacket stuff to use ASN.1. Finally this big chunk of work is completed. Compiles and links fine, but still partly non-functional.

PLEASE NOTE: This is NOT COMPATIBLE to 0.7.x, because it is a new network protocol.
This commit is contained in:
lotodore
2009-08-02 15:11:40 +00:00
parent d7367788a7
commit 945c4a102a
24 changed files with 1517 additions and 8265 deletions
+5 -5
View File
@@ -51,9 +51,9 @@ enum AvatarFileType
AVATAR_FILE_TYPE_GIF
};
struct AvatarData
struct AvatarFile
{
AvatarData() : fileType(AVATAR_FILE_TYPE_UNKNOWN), reportedSize(0) {}
AvatarFile() : fileType(AVATAR_FILE_TYPE_UNKNOWN), reportedSize(0) {}
std::vector<unsigned char> fileData;
AvatarFileType fileType;
unsigned reportedSize;
@@ -84,8 +84,8 @@ public:
void SetAvatarMD5(const MD5Buf &avatarMD5);
boost::shared_ptr<SessionData> GetNetSessionData() const;
void SetNetSessionData(boost::shared_ptr<SessionData> session);
boost::shared_ptr<AvatarData> GetNetAvatarData() const;
void SetNetAvatarData(boost::shared_ptr<AvatarData> avatarData);
boost::shared_ptr<AvatarFile> GetNetAvatarFile() const;
void SetNetAvatarFile(boost::shared_ptr<AvatarFile> AvatarFile);
PlayerType GetType() const;
void SetType(PlayerType type);
PlayerRights GetRights() const;
@@ -105,7 +105,7 @@ private:
PlayerType m_type;
PlayerRights m_rights;
boost::shared_ptr<SessionData> m_netSessionData;
boost::shared_ptr<AvatarData> m_netAvatarData;
boost::shared_ptr<AvatarFile> m_netAvatarFile;
mutable boost::mutex m_dataMutex;
};