00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _COMMONSERVER_H_
00012 #define _COMMONSERVER_H_
00013 #include "RNPlatform/Inc/DLLExportAPI.h"
00014 #include "RNPlatform/Inc/Encryption.h"
00015 #include "RNPlatform/Inc/ThreadClass.h"
00016 #include "RNPlatform/Inc/Thread.h"
00017 #include "RNXPSockets/Inc/XPSockets.h"
00018 #include "RNPlatform/Inc/MessageHelper.h"
00019
00020 namespace RNReplicaNet
00021 {
00022
00023 namespace RNLobby
00024 {
00025
00027 class CommonServer
00028 {
00029 public:
00030 bool CommonCallbackParsePacketData(void *data,size_t &length,DynamicMessageHelper &result);
00031 void CommonPackageAndSendData(const DynamicMessageHelper &message,DynamicMessageHelper &result);
00032
00033 Encryption::Key mCryptoKey;
00034 };
00035
00036 }
00037
00038 }
00039
00040 #endif