?? 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_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -