- // MySocket.h: interface for the CMySocket class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined __MY_SOCKET__
- #define __MY_SOCKET__
- class CMySocket
- {
- SOCKET m_sock;
- public:
- CMySocket();
- virtual ~CMySocket();
- bool Create(void);
- void Close(void);
- bool Connect(CString &host);
- int Send(const char *buf,int buflen);
- int Receive(char *buf, int buflen);
- };
- #endif