www.pudn.com > Fronter_xie3.rar > OnlinePage.h


#if !defined(AFX_ONLINEPAGE_H__931FAABF_4536_4DF9_B86F_E5B5BDB1190C__INCLUDED_) 
#define AFX_ONLINEPAGE_H__931FAABF_4536_4DF9_B86F_E5B5BDB1190C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// OnlinePage.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// COnlinePage dialog 
 
#include "Connect790Socket.h" 
 
#define USER_PROC_UPDATA  WM_USER + 1 
 
 
 
class COnlinePage : public CPropertyPage 
{ 
	DECLARE_DYNCREATE(COnlinePage) 
 
// Construction 
public: 
	COnlinePage(); 
	~COnlinePage(); 
 
// Dialog Data 
	//{{AFX_DATA(COnlinePage) 
	enum { IDD = IDD_PROPPAGE_ONLINEPAGE }; 
	CListCtrl	m_ListNetWorkstate; 
	UINT	m_ListenCl790dPort; 
	UINT	m_ListTestGbPort; 
	UINT    m_nTimer; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generate virtual function overrides 
	//{{AFX_VIRTUAL(COnlinePage) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	// Generated message map functions 
	//{{AFX_MSG(COnlinePage) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnButtonStartcl790d(); 
	afx_msg void OnButtonStarttestgb(); 
	afx_msg void OnButtonStopcl790d(); 
	afx_msg void OnButtonStoptestgb(); 
	afx_msg void OnButtonStartstat(); 
	afx_msg void OnButtonStopstat(); 
	afx_msg void OnButtonClearstat(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	//}}AFX_MSG 
	afx_msg void UpdateList(); 
 
	DECLARE_MESSAGE_MAP() 
 
public: 
	SOCKET sock790D,SockTestGB,msgsock[50],clisock,ConSocket; 
	int addlen; 
	sockaddr_in serv790D,servTestGB; 
	int Connectaddlen; 
	sockaddr_in ConnectSockaddr; 
	int count; 
 
}; 
 
UINT thread790D(LPVOID); 
UINT threadTestGB(LPVOID); 
UINT CL790DGBLocalSocketThread(void* pvPara); 
UINT TestGBLocalSocketThread(void* pvPara); 
void SetSocketList(SOCKET Localsockfd,BYTE index,Para_Address *pAdd); 
UINT Connectthread(LPVOID p); 
WORD ByteToWord(BYTE* p); 
BYTE CheckSum(BYTE* p, WORD wLen); 
void CountPackages(int index,int dir,int len); 
void DebugMSg(char *buff,int level); 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ONLINEPAGE_H__931FAABF_4536_4DF9_B86F_E5B5BDB1190C__INCLUDED_)