tmp
This commit is contained in:
parent
65cb26a627
commit
1ead32d84a
71 changed files with 199 additions and 282 deletions
|
|
@ -1,10 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include "Strings.hpp"
|
||||
#include "Module.hpp"
|
||||
#include <string>
|
||||
|
||||
namespace tp {
|
||||
extern ModuleManifest gModuleConnection;
|
||||
|
||||
class Connection {
|
||||
public:
|
||||
typedef ualni SizeBytes;
|
||||
|
|
|
|||
|
|
@ -9,20 +9,20 @@ namespace tp {
|
|||
class LocalConnection : public Connection {
|
||||
public:
|
||||
class Location {
|
||||
String mLocation;
|
||||
std::string mLocation;
|
||||
|
||||
public:
|
||||
Location() :
|
||||
mLocation("tmp"){};
|
||||
explicit Location(const String& location) :
|
||||
explicit Location(const std::string& location) :
|
||||
mLocation(location) {}
|
||||
void setLocation(const String& location) { mLocation = location; }
|
||||
[[nodiscard]] const String& getLocation() const { return mLocation; }
|
||||
void setLocation(const std::string& location) { mLocation = location; }
|
||||
[[nodiscard]] const std::string& getLocation() const { return mLocation; }
|
||||
[[nodiscard]] bool exists() const;
|
||||
};
|
||||
|
||||
public:
|
||||
LocalConnection(){ MODULE_SANITY_CHECK(gModuleConnection) };
|
||||
LocalConnection() = default;
|
||||
|
||||
virtual ~LocalConnection() {
|
||||
if (mStatus.isOpened()) LocalConnection::disconnect();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "Common.hpp"
|
||||
#include "Module.hpp"
|
||||
|
||||
namespace tp {
|
||||
class ServerContext;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "ConnectionCommon.hpp"
|
||||
#include "List.hpp"
|
||||
|
||||
namespace tp {
|
||||
|
||||
|
|
@ -17,7 +16,7 @@ namespace tp {
|
|||
};
|
||||
|
||||
public:
|
||||
RemoteConnection(){ MODULE_SANITY_CHECK(gModuleConnection) };
|
||||
RemoteConnection() = default;
|
||||
|
||||
virtual ~RemoteConnection() {
|
||||
if (mStatus.isOpened()) RemoteConnection::disconnect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue