#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