⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gprsserverdlg.h

📁 gprs
💻 H
字号:
// GprsServerDlg.h : header file
//

#if !defined(AFX_GPRSSERVERDLG_H__545309F2_8024_4BF3_976A_949C3D6B94B6__INCLUDED_)
#define AFX_GPRSSERVERDLG_H__545309F2_8024_4BF3_976A_949C3D6B94B6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CGprsServerDlg dialog

class CGprsServerDlg : public CDialog
{
// Construction
public:
	CGprsServerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CGprsServerDlg)
	enum { IDD = IDD_GPRSSERVER_DIALOG };
	CProgressCtrl	m_ProgressFileCnt;
	CProgressCtrl	m_Progress;
	CListBox	m_AddMsgList;
	CIPAddressCtrl	m_YourIP;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGprsServerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CGprsServerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnRadioTcp();
	afx_msg void OnRadioUdp();
	afx_msg void OnRadioServer();
	afx_msg void OnRadioClient();
	virtual void OnCancel();
	afx_msg void OnButtonConnect();
	afx_msg void OnButtonDisconnect();
	afx_msg void OnButtonClear();
	afx_msg void OnButtonFileStop();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonUpdatePic();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

//*************ADD BY DAVIDLI*******************************
//function
public:
	int SaveYouFile(CSocket &recSo);
//	int ReceiveFileMsg(CSocket & socket,SOCKADDR_IN &client);
	int GetIpAddress(const CString & sHostName,CString & sIpAddress);
	int GetLocalHostName(CString &sHostName);
	int GetNamebyAddress(const CString &IpAddress,CString &sYouName);		//获得对方计算机名称
	CString GetError(DWORD error);
	void AddMsgList(CString IP,CString str);	//添加信息于LISTBOX 控件中
	int ReceiveFileMsg(CSocket &recSo,SOCKADDR_IN &client);	//接受函数
//***********vailue**************************8******
	int	m_nSockType;	//连接类型
	int m_WorkType;		//工作方式 server0,client1,both2
//	void AddMsgList(CString IP,CString str); //LISTBOX控件添加信息
	int m_client, m_server;
	CString m_fileName;
	bool FileWork, FileStop, StopServer;
	int m_Port;
	char m_type;	//接受类型/F-文件,C-抓平,D-关闭,M-消息

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GPRSSERVERDLG_H__545309F2_8024_4BF3_976A_949C3D6B94B6__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -