www.pudn.com > agentnet.zip > LISTENINGSOCKET.H
// ListeningSocket.h: interface for the CListeningSocket class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LISTENINGSOCKET_H__INCLUDED_)
#define AFX_LISTENINGSOCKET_H__INCLUDED_
class CAgentNetServerDlg;
//侦听套接字类
class CListeningSocket : public CSocket
{
DECLARE_DYNAMIC(CListeningSocket);
//Construction
public:
CListeningSocket(CAgentNetServerDlg* pDlg);
// Attributes
public:
//成员变量
CAgentNetServerDlg* m_pDlg;
// Overridable Callbacks
protected:
//重载的成员函数
virtual void OnAccept(int nErrorCode);
//Implementation
public:
virtual ~CListeningSocket();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
};
/////////////////////////////////////////////////////////////////////////////
#endif // !defined(AFX_LISTENINGSOCKET_H__INCLUDED_)