From 490d36e65ac24e34e3021c2a0947384aee138c88 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Wed, 13 Apr 2016 21:05:14 -0400 Subject: Root commit for new Compass repository This is the Alpha version of ComPASS, originally developed sometime in 2014. --- Socket.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Socket.h (limited to 'Socket.h') diff --git a/Socket.h b/Socket.h new file mode 100644 index 0000000..86b6478 --- /dev/null +++ b/Socket.h @@ -0,0 +1,29 @@ +#ifndef SOCKET_H +#define SOCKET_H + +#include +#include + +#ifdef WIN32 +#else +#include +#include +#endif // WIN32 + +class Socket { +public: + Socket(); + virtual ~Socket(); + + void conn(std::string host, std::string port); + void sendline(std::string line); + std::string readline(); + void clo(); + +private: + /*int sockid; + addrinfo hostInfo; + addrinfo* hostInfoList;*/ +}; + +#endif // SOCKET_H -- cgit v1.2.3