mailsocket.h
资源名称:SmartMailSvr [点击查看]
上传用户:qdlutongda
上传日期:2007-01-14
资源大小:133k
文件大小:2k
源码类别:
Email客户端
开发平台:
Visual C++
- #if !defined(AFX_MAILSOCKET_H__6B6A2627_F763_4AC1_B941_EDAB368C0F3B__INCLUDED_)
- #define AFX_MAILSOCKET_H__6B6A2627_F763_4AC1_B941_EDAB368C0F3B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MailSocket.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CClientSocket command target
- class CClientSocket : public CAsyncSocket
- {
- DECLARE_DYNAMIC(CClientSocket);
- private:
- CClientSocket(const CClientSocket& rSrc); // no implementation
- void operator=(const CClientSocket& rSrc); // no implementation
- // Construction
- public:
- CClientSocket();
- virtual int Send(const void* lpBuf, int nBufLen, int nFlags = 0);
- // Attributes
- public:
- int m_nMsgCount;
- // CInetServerDlg* m_pDoc;
- // Overridable callbacks
- protected:
- virtual void OnReceive(int nErrorCode);
- virtual void OnClose( int nErrorCode );
- virtual void OnConnect(int nErrorCode);
- // Implementation
- public:
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // CListeningSocket command target
- class CListeningSocket : public CAsyncSocket
- {
- DECLARE_DYNAMIC(CListeningSocket);
- private:
- CListeningSocket(const CListeningSocket& rSrc); // no implementation
- void operator=(const CListeningSocket& rSrc); // no implementation
- // Construction
- public:
- CListeningSocket();
- // Attributes
- public:
- // CInetServerDlg* m_pDoc;
- // Overridable callbacks
- protected:
- virtual void OnAccept(int nErrorCode);
- // Implementation
- public:
- virtual ~CListeningSocket();
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAILSOCKET_H__6B6A2627_F763_4AC1_B941_EDAB368C0F3B__INCLUDED_)