?? net.h
字號:
#if !defined(AFX_NET_H__44E42F21_3379_4A82_9A2A_67CB455FA999__INCLUDED_)
#define AFX_NET_H__44E42F21_3379_4A82_9A2A_67CB455FA999__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Net.h : header file
//
class CPictalkDlg;
#include "ClientSocket.h"
#include "ListeningSocket.h"
/////////////////////////////////////////////////////////////////////////////
// CNet document
extern CArray<mpack,mpack> m_Willcon;
extern UINT ConnectThreadProc(LPVOID pParam);
extern CArray<CClientSocket *,CClientSocket *> m_UsedCon;
class CNet
{
protected:
// protected constructor used by dynamic creation
// Attributes
public:
CNet(CPictalkDlg * pPictalkDlg);
CNet(CPictalkDlg * pPictalkDlg,UINT PortAddress);
CNet(CPictalkDlg * pPictalkDlg,LPCTSTR ServerName, UINT PortAddress);
BOOL m_bMain;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNet)
//}}AFX_VIRTUAL
// Implementation
public:
void ConnectOver();
void SendMsg(mpack &Msgpack);
void ConBegin();
void FetchMsg(CClientSocket *pSocket);
CClientSocket * ConnectServer(LPCTSTR ServerName, UINT PortAddress);
void NewLink(CClientSocket *pSocket);
BOOL BuildListen(UINT PortAddress);
CListeningSocket * m_pListeningSocket;
BOOL m_bReady;
CEvent g_eventCon;
void GetMsg(CArchive& ar,mpack &pmpack);
virtual void SendMsg(mpack &Msgpack,CSocket * pSocket,BOOL bSend=TRUE);
virtual void SendMsgs(mpack &Msgpack,CClientSocket * pSocket=NULL);
CPictalkDlg * m_pPictalkDlg;
CCriticalSection m_cs;
virtual ~CNet();
#ifdef _DEBUG
#endif
// Generated message map functions
protected:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NET_H__44E42F21_3379_4A82_9A2A_67CB455FA999__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -