summaryrefslogtreecommitdiffstats
path: root/external/optick/optick_server.h
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-07 04:56:57 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-07 04:56:57 +0200
commit83889ba33dad2743eeb2a79102a1117ec9220025 (patch)
tree7e15713639a4e0c12f1a06e467dd0b3d79070983 /external/optick/optick_server.h
parentReplaced find_package with CPMAddPackage for more libraries (diff)
downloadAltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.gz
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.bz2
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.lz
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.xz
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.tar.zst
AltCraft-83889ba33dad2743eeb2a79102a1117ec9220025.zip
Diffstat (limited to 'external/optick/optick_server.h')
-rw-r--r--external/optick/optick_server.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/external/optick/optick_server.h b/external/optick/optick_server.h
deleted file mode 100644
index b44153e..0000000
--- a/external/optick/optick_server.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#pragma once
-#include "optick.config.h"
-
-#if USE_OPTICK
-#include "optick_message.h"
-
-#include <mutex>
-#include <thread>
-
-namespace Optick
-{
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-class Socket;
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-class Server
-{
- InputDataStream networkStream;
-
- static const int BIFFER_SIZE = 1024;
- char buffer[BIFFER_SIZE];
-
- Socket* socket;
-
- std::recursive_mutex socketLock;
-
- Server( short port );
- ~Server();
-
- bool InitConnection();
-
-public:
- void Send(DataResponse::Type type, OutputDataStream& stream = OutputDataStream::Empty);
- void Update();
-
- string GetHostName() const;
-
- static Server &Get();
-};
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-}
-
-#endif //USE_OPTICK \ No newline at end of file