summaryrefslogtreecommitdiffstats
path: root/Socket.h
blob: 86b6478ac704bf2cf3359b07521e3186d15ade28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef SOCKET_H
#define SOCKET_H

#include <string>
#include <cstring>

#ifdef WIN32
#else
#include <sys/socket.h>
#include <netdb.h>
#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