34 #include "Connection.h"
37 #include "IPEndPoint.h"
38 #include "Uninetwork.h"
48 static const sp2plib::UInt32 DisconnectedState = 0;
54 static const sp2plib::UInt32 AuthentificatedState = 1;
71 ::std::string Get(::std::string name);
76 void Set(::std::string name,::std::string value);
97 ::std::string &operator [] (::std::string Name);
103 bool RemoveProperty(::std::string Name);
108 int AllPropertiesCount();
113 ::std::string PropertyNameOnIndex(
int Index);
195 int GetSerializationLength(
bool serializeCustomProperties =
true);
201 unsigned char* new_GetBytes(
int * len,
bool serializeCustomProperties =
true);
210 int WriteBytes(
unsigned char* buffer,
int startIndex = 0,
bool serializeCustomProperties =
true);
216 int Parse(
unsigned char* Data,
int startIndex = 0);
226 static Peer ParsePeer(
unsigned char* Data,
int startIndex = 0,
int *len = NULL);
236 static Peer* new_ParsePeer(
unsigned char* Data,
int startIndex = 0,
int *len = NULL);
259 unsigned char TunnelSecretData[32];
264 typedef enum PeerAttributeType {
272 PAT_CheckPointEP = 18,
273 PAT_CheckPointUID = 19,
277 PAT_ApplicationUID = 23,
279 PAT_CanTcpAccept = 25
282 ::std::map< ::std::string,::std::string> _Properties;