Server.h
上传用户:bsw_2008
上传日期:2013-07-09
资源大小:2446k
文件大小:1k
- // Server.h: interface for the CServer class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SERVER_H__9EA38E2F_70EE_4F6E_97B2_4454C27D8529__INCLUDED_)
- #define AFX_SERVER_H__9EA38E2F_70EE_4F6E_97B2_4454C27D8529__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "winsock.h"
- class CServer
- {
- public:
- HWND m_hWnd;
- UINT m_uPort;
- sockaddr_in m_addr;
- SOCKET m_connect;
- SOCKET m_hSocket;
- BOOL InitAndListen(HWND hwnd,UINT port);
- CServer();
- virtual ~CServer();
- private:
- void ServerInit();
- };
- #endif // !defined(AFX_SERVER_H__9EA38E2F_70EE_4F6E_97B2_4454C27D8529__INCLUDED_)