mirror of
https://github.com/SWG-Source/src.git
synced 2026-10-05 22:12:52 -04:00
Added ChatServer and soePlatform
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user