Refactor to use LockedWrapper guard
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "LockedWrapper.h"
|
||||
#include <string>
|
||||
|
||||
// Class FLpxSockets
|
||||
@@ -33,15 +34,19 @@ protected:
|
||||
|
||||
public:
|
||||
// Create the Luprex socket system.
|
||||
static FLpxSockets* Create(EngineWrapper *w);
|
||||
static FLpxSockets* Create(FLockedWrapper &w);
|
||||
|
||||
// Delete the luprex socket system. Cleanly closes all sockets.
|
||||
// Close all sockets.
|
||||
virtual void ForceCloseEverything(FLockedWrapper& w) = 0;
|
||||
|
||||
// The update routine relays data into and out of
|
||||
// luprex via TCP/IP sockets.
|
||||
virtual void Update(FLockedWrapper& w) = 0;
|
||||
|
||||
// Delete the luprex socket system.
|
||||
// You must call ForceCloseEverything first.
|
||||
virtual ~FLpxSockets() {}
|
||||
|
||||
// Obtain any error status report.
|
||||
virtual std::string GetError() = 0;
|
||||
|
||||
// The update routine relays data into and out of
|
||||
// luprex via TCP/IP sockets.
|
||||
virtual void Update() = 0;
|
||||
};
|
||||
Reference in New Issue
Block a user