summaryrefslogtreecommitdiff
path: root/retrace/daemon/glframe_socket.hpp
diff options
context:
space:
mode:
authorMark Janes <mark.a.janes@intel.com>2016-07-21 10:07:14 -0700
committerMark Janes <mark.a.janes@intel.com>2017-06-19 14:04:46 -0700
commit328ffd74b89de56f0ae83d2268788f88f29c216c (patch)
treee025f73923e8afa3f6c17f861b8531506bcc8f36 /retrace/daemon/glframe_socket.hpp
parentb7201cd35995e872cfd600fb0491039ff352e917 (diff)
cmake: use single implementation file for socket
Windows must initialize winsock library before use.
Diffstat (limited to 'retrace/daemon/glframe_socket.hpp')
-rw-r--r--retrace/daemon/glframe_socket.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/retrace/daemon/glframe_socket.hpp b/retrace/daemon/glframe_socket.hpp
index 5c2220b4..d6648eeb 100644
--- a/retrace/daemon/glframe_socket.hpp
+++ b/retrace/daemon/glframe_socket.hpp
@@ -43,6 +43,8 @@ class Socket : NoAssign, NoCopy, NoMove {
// sockets, use the ServerSocket class
Socket(const std::string &address, int port);
~Socket();
+ static void Init();
+ static void Cleanup();
bool Read(void * buf, int size);
template <typename T> bool Read(T *val) { return Read(val, sizeof(T)); }