-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyAsyncSocket.h
More file actions
44 lines (37 loc) · 896 Bytes
/
MyAsyncSocket.h
File metadata and controls
44 lines (37 loc) · 896 Bytes
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
// MyAsyncSocket.h : header file
//
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MySocket.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// MyAsyncSocket command target
class MyAsyncSocket : public CAsyncSocket
{
// Attributes
public:
// Operations
public:
MyAsyncSocket();
virtual ~MyAsyncSocket();
// Overrides
public:
void OnSend(int iErrorCode);
void OnReceive(int iErrorCode);
void OnClose(int iErrorCode);
void OnConnect(int iErrorCode);
void OnAccept(int iErrorCode);
void SetParent(CDialog* pWnd);
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(MyAsyncSocket)
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(MyAsyncSocket)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
private:
CDialog* m_pWnd;
};