You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
906 B
C
33 lines
906 B
C
|
12 years ago
|
// MySocket.h: interface for the CMySocket class.
|
||
|
|
//
|
||
|
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
#if !defined(AFX_MYSOCKET_H__2BD08342_32C8_11D7_A913_00902775C68D__INCLUDED_)
|
||
|
|
#define AFX_MYSOCKET_H__2BD08342_32C8_11D7_A913_00902775C68D__INCLUDED_
|
||
|
|
|
||
|
|
#if _MSC_VER > 1000
|
||
|
|
#pragma once
|
||
|
|
#endif // _MSC_VER > 1000
|
||
|
|
|
||
|
|
#include <afxsock.h> // MFC socket extensions
|
||
|
|
|
||
|
|
class CMySocket : public CSocket// CAsyncSocket
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
virtual BOOL OnMessagePending();
|
||
|
|
void SetParent(HANDLE cVision);
|
||
|
|
CMySocket();
|
||
|
|
virtual ~CMySocket();
|
||
|
|
|
||
|
|
protected:
|
||
|
|
virtual void OnSend(int nErrorCode);
|
||
|
|
virtual void OnReceive(int nErrorCode);
|
||
|
|
virtual void OnClose(int nErrorCode);
|
||
|
|
virtual void OnConnect(int nErrorCode);
|
||
|
|
virtual void OnAccept(int nErrorCode);
|
||
|
|
private:
|
||
|
|
HANDLE m_pcVision;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // !defined(AFX_MYSOCKET_H__2BD08342_32C8_11D7_A913_00902775C68D__INCLUDED_)
|