diff options
Diffstat (limited to 'src/eUpstreamSocket.h')
-rw-r--r-- | src/eUpstreamSocket.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/eUpstreamSocket.h b/src/eUpstreamSocket.h new file mode 100644 index 0000000..0998d2a --- /dev/null +++ b/src/eUpstreamSocket.h @@ -0,0 +1,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_ */ |