Added ChatServer and soePlatform

This commit is contained in:
Anonymous
2014-01-17 03:40:51 -07:00
parent 26b88b4533
commit 4fae2dfe0f
183 changed files with 64549 additions and 0 deletions
@@ -0,0 +1,31 @@
#ifndef UDPLIBRARY_UDPHELPER_H
#define UDPLIBRARY_UDPHELPER_H
// Copyright 2004 Sony Online Entertainment, all rights reserved.
// Author: Jeff Petersen
namespace UdpLibrary
{
class UdpGuard
{
public:
UdpGuard(UdpPlatformGuardObject *obj) { mObj = obj; mObj->Enter(); }
~UdpGuard() { mObj->Leave(); }
protected:
UdpPlatformGuardObject *mObj;
};
class UdpRef
{
public:
UdpRef(UdpRefCount *obj) { mObj = obj; mObj->AddRef(); }
~UdpRef() { mObj->Release(); }
private:
UdpRefCount *mObj;
};
} // namespace
#endif