📄 serverdlg.h
字号:
#if !defined( AFX_SERVERDLG_H__A051048C_5FA9_45D9_81CE_D9ED862E1D59__INCLUDED_)
#define AFX_SERVERDLG_H__A051048C_5FA9_45D9_81CE_D9ED862E1D59__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "vtWave.h"
// CServerDlg dialog
class CServerDlg : public CDialog
{
// Construction
public:
CServerDlg(CWnd* pParent = NULL); // standard constructor
~CServerDlg();
// Dialog Data
//{{AFX_DATA(CServerDlg)
enum { IDD = IDD_TALKSERVER_DIALOG };
CListBox m_ClientList; // List of available clients
CListBox m_ProtList; // List of compatible protocols
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServerDlg)
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CServerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg LONG OnVTConnected(WPARAM wparam, LPARAM lparam);
afx_msg LONG OnVTDataReady(WPARAM wparam, LPARAM lparam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
LPVTMSG m_vtMsgBuf; // Buffer of communication message
VTSAPPACK m_vtSAPData; // SAP packet data
LPVTSOCKET m_lpServSocks; // Server sockets to listen
LPVTSOCKET m_lpClientSocks; // The sockets to connect
// with the clients
HANDLE m_hConnectHeap; // Handle of the heap for client sockets
LPPROTOCOL_INFO m_lpProtBuf; // Buffer for protocol information
SOCKET m_SAPSocket; // SAP socket
SOCKADDR_IPX m_SAPSockAddr; // SAP socket address
SOCKADDR_IPX m_SAPDestSockAddr; // SAP destination socket address
int m_iNextFree; // Available buffers for client sockets
int m_iMaxConnects; // The maximum connections of clients
int m_iWorkProt; // The compatible protocol numbers
protected:
BOOL InitServSocks(void);
BOOL InitClientSocks(void);
void DeRegisterClient(char* sClientName);
void UpdateProtList(int index);
void UpdateClientList(char* name, int status, char* peername);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined( AFX_TALKSERVERDLG_
H__A051048C_5FA9_45D9_81CE_D9ED862E1D59__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -