telnetdlg.h

来自「用c++开发的telnet程序。」· C头文件 代码 · 共 66 行

H
66
字号
// TelnetDlg.h : header file
//

#if !defined(AFX_TELNETDLG_H__A5E4C048_7A3A_11D3_A477_00C04FCFA005__INCLUDED_)
#define AFX_TELNETDLG_H__A5E4C048_7A3A_11D3_A477_00C04FCFA005__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTelnetDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CTelnetDlg)
	enum { IDD = IDD_TELNET_DIALOG };
	CIPAddressCtrl	m_IPAddr;
	CEdit	m_password;
	CEdit	m_loginname;
	CButton	m_connect;
	//}}AFX_DATA

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

// Implementation
public:
	int DoSend(SOCKET hSock, LPSTR lpOutBuf, int cbTotalToSend);
	int SendData(SOCKET hSock, LPSTR lpOutBuf, int cbTotalToSend);
	int RecvData(SOCKET hSock, LPSTR lpInBuf, int cbTotalToRecv, int nTimeout);
	int DoRecv(SOCKET hSock, LPSTR lpInBuf, int cbTotalToRecv, int nTimeout);
	u_long GetAddr(LPSTR szHost);
	int CloseTCP(SOCKET hSock, LPSTR lpInBuf, int len);
	SOCKET ConnectTCP(CString& strDest);
	SOCKET hSock;
	CString m_ipaddr;
	CString m_strLoginName;
	CString m_strPassword;
	
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTelnetDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnConnect();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TELNETDLG_H__A5E4C048_7A3A_11D3_A477_00C04FCFA005__INCLUDED_)

⌨️ 快捷键说明

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