📄 hellosocksdlg.h
字号:
// hellosocksDlg.h : header file
//
#if !defined(AFX_HELLOSOCKSDLG_H__B9B911A6_4E47_46EF_AE98_DD588E2E4841__INCLUDED_)
#define AFX_HELLOSOCKSDLG_H__B9B911A6_4E47_46EF_AE98_DD588E2E4841__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "winsock2.h"
#define SERVER_IP ("192.168.0.104")
#define SERVER_PORT (5168)
/////////////////////////////////////////////////////////////////////////////
// CHellosocksDlg dialog
class CHellosocksDlg : public CDialog
{
// Construction
public:
CHellosocksDlg(CWnd* pParent = NULL); // standard constructor
char m_Send[50];
// char m_Recv[50];
SOCKET m_hListen;
BOOL m_bIsThread;
SOCKET m_hAccept;
// Dialog Data
//{{AFX_DATA(CHellosocksDlg)
enum { IDD = IDD_HELLOSOCKS_DIALOG };
CListBox m_ctlList;
CString m_strText;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHellosocksDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
private:
friend DWORD WINAPI ThreadServer(LPVOID lpPara);
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CHellosocksDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HELLOSOCKSDLG_H__B9B911A6_4E47_46EF_AE98_DD588E2E4841__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -