Client.h
上传用户:bsw_2008
上传日期:2013-07-09
资源大小:2446k
文件大小:1k
- // Client.h: interface for the CClient class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CLIENT_H__E01B758D_B4C6_49B4_B7FA_1DC3EF8CB2A5__INCLUDED_)
- #define AFX_CLIENT_H__E01B758D_B4C6_49B4_B7FA_1DC3EF8CB2A5__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "winsock.h"
- class CClient
- {
- public:
- CString m_strServer;
- SOCKET m_hSocket;
- sockaddr_in m_addr;
- UINT m_uPort;
- HWND m_hWnd;
- void SendString(CString a);
- void GetString(CString &str);
- BOOL InitAndConnect(HWND hWnd,UINT port,CString strServer);
- CClient();
- virtual ~CClient();
- private:
- void ClientInit();
- };
- #endif // !defined(AFX_CLIENT_H__E01B758D_B4C6_49B4_B7FA_1DC3EF8CB2A5__INCLUDED_)