📄 chatclient.h
字号:
#if !defined(AFX_CHATCLIENT_H__FF6B6466_8A89_4728_B131_113081E96DA4__INCLUDED_)
#define AFX_CHATCLIENT_H__FF6B6466_8A89_4728_B131_113081E96DA4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChatClient.h : header file
//
#include "CMessg.h"
/////////////////////////////////////////////////////////////////////////////
// CChatClient command target
class CLANChatDlg;
class CChatClient : public CSocket
{
// Attributes
public:
// Operations
public:
CChatClient();
virtual ~CChatClient();
// Overrides
public:
static CString ErrorReason(int tag);
static int GetIpAddress(const CString &sHostName, BYTE &f0,BYTE &f1,BYTE &f2,BYTE &f3);//获得本地IP
static int GetIpAddress(const CString &sHostName, CString &sIpAddress);//获得本地IP
static int GetLocalHostName(CString &sHostName);
void CloseSocket();
BOOL SendMessage(CMessg * msg);
void Init(CLANChatDlg * dlg);
CArchive* m_aSessionIn;
CArchive* m_aSessionOut;
CSocketFile* m_sfSocketFile;
CLANChatDlg * m_dlg;
bool m_bInit;
bool m_bClose;
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChatClient)
public:
virtual void OnReceive(int nErrorCode);
virtual void OnClose(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CChatClient)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHATCLIENT_H__FF6B6466_8A89_4728_B131_113081E96DA4__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -