aboutsummaryrefslogtreecommitdiff
path: root/client/sock.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-20 11:55:50 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-20 11:55:50 +0200
commit5876e74fa32881b41478cd67c5b0895161fbdc9c (patch)
treeaa5ea781dde2ae1c06f40cbd81c988f7643ef491 /client/sock.h
parentb854c4d6ac06c4a39006a086766deb90096c2998 (diff)
add socket class + test async prompt messages
Diffstat (limited to 'client/sock.h')
-rw-r--r--client/sock.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/client/sock.h b/client/sock.h
new file mode 100644
index 0000000..e3d7ec8
--- /dev/null
+++ b/client/sock.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <cstdint>
+#include <thread>
+
+class PBSocket {
+public:
+ PBSocket(char* addr, uint16_t port);
+
+ void connect(char* addr, uint16_t port);
+
+private:
+ PBSocket();
+
+ void sock_task();
+
+ std::thread _thread;
+
+};
+
+