1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- // TestConnIPDlg.h : header file
- //
- #if !defined(AFX_TestConnIPDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_)
- #define AFX_TestConnIPDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CTestConnIPDlg dialog
- #include "ClientTunnel.h"
- class CTestConnIPDlg : public CDialog
- {
- // Construction
- public:
- int GetPort();
- BOOL OnConnect3();
- BOOL OnConnect2();
- bool m_bRunning; // Flag to whether thread is on running or not
- bool m_bTerminate; // Flag to Thread to be terminated
- unsigned int m_dwThreadID; // Thread ID
- HANDLE m_hThread; // Thread and Event handle
- CTestConnIPDlg(CWnd* pParent = NULL); // standard constructor
- void OnDisconnect();
- BOOL OnConnect();
- BOOL TerminateThread();
- DWORD GetConnectionID();
- void SetConnectionID(DWORD dwConnection);
- void ProcessChatMessageRequest2(CString sql);
- void ProcessChatMessageRequest2(BYTE *pData, int length);
- BOOL ProcessChatMessageRequest(void *szDataBuf, int nDataLen);
- void ProcessChatMessageResponse(void *pResponse);
- void ProcessLoginResponse(void *pLoginResult);
- BOOL ProcessLoginRequest();
- void ProcessNetEvent(int nEventType, void *pRecvMsg, DWORD dwDataLen);
- CClientTunnel m_tClientTunnel;
- DWORD m_dwConnectionID;
- // Dialog Data
- //{{AFX_DATA(CTestConnIPDlg)
- enum { IDD = IDD_TestConnIP_DIALOG };
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTestConnIPDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- int m_hsock;
- // Generated message map functions
- //{{AFX_MSG(CTestConnIPDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnDestroy();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnClose();
- afx_msg void OnTestConnIP();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TestConnIPDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_)
|