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

📄 telnetdlg.h

📁 用c++开发的telnet程序。
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -