-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMySocket.h
More file actions
55 lines (44 loc) · 1.36 KB
/
MySocket.h
File metadata and controls
55 lines (44 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#if !defined(AFX_CMYSOCKET1_H__94114506_2057_4D8A_AD10_CD7CF6DF94CB__INCLUDED_)
#define AFX_CMYSOCKET1_H__94114506_2057_4D8A_AD10_CD7CF6DF94CB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MySocket.h : header file
//
//class CMyOpenGLView;
/////////////////////////////////////////////////////////////////////////////
// MySocket command target
class CMySocket : public CSocket
{
// Attributes
public:
// Operations
public:
CMySocket();
virtual ~CMySocket();
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMySocket)
//}}AFX_VIRTUAL
// all of the On* functions are pure virtual in CAsyncSocket, and are required to
// be overridden
void OnSend(int iErrorCode);
void OnReceive(int iErrorCode);
void OnClose(int iErrorCode);
void OnConnect(int iErrorCode);
void OnAccept(int iErrorCode);
void SetParent(CView* pWnd);
// Generated message map functions
//{{AFX_MSG(CMySocket)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
private:
CView* m_pWnd;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CMYSOCKET1_H__94114506_2057_4D8A_AD10_CD7CF6DF94CB__INCLUDED_)