summaryrefslogtreecommitdiff
path: root/src/eUpstreamSocket.h
blob: 0998d2aea6b222c3a20544a915ae8e22bc7d894a (plain)
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
30
31
32
/*
 * eUpstreamPumpThread.h
 *
 *  Created on: 2013. 10. 30.
 *      Author: kos
 */

#ifndef EUPSTREAMSOCKET_H_
#define EUPSTREAMSOCKET_H_

#include <arpa/inet.h>
#include <netinet/ip.h>

#include <string>
//-------------------------------------------------------------------------------

class eUpstreamSocket
{
private:
	int mSockFd;
	struct sockaddr_in mSockAddr;

public:
	eUpstreamSocket();
	virtual ~eUpstreamSocket();

	bool Connect();
	int Request(std::string aSendData, std::string& aRecvData);
};
//-------------------------------------------------------------------------------

#endif /* EUPSTREAMSOCKET_H_ */