-
Notifications
You must be signed in to change notification settings - Fork 2
/
SmartSocket.h
executable file
·57 lines (48 loc) · 1.47 KB
/
SmartSocket.h
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
56
57
#if !defined(AFX_SMARTSOCKET_H__493A5C13_645A_11D1_9DF4_0000CB280107__INCLUDED_)
#define AFX_SMARTSOCKET_H__493A5C13_645A_11D1_9DF4_0000CB280107__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// SmartSocket.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSmartSocket command target
class CSmartSocket:public CAsyncSocket
{
// Attributes
public:
// Operations
public:
CSmartSocket (CPex32Doc * pDoc);
CSmartSocket ();
virtual ~ CSmartSocket ();
CPex32Doc *m_pDoc;
// Overrides
public:
void OnLineComplete ();
void pr (char *format, ...);
void OnStartup (void);
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSmartSocket)
public:
virtual void OnReceive (int nErrorCode);
virtual void OnClose (int nErrorCode);
virtual void OnSend (int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CSmartSocket)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
protected:
BOOL m_LoggedIn;
char m_RecvBuffer[10240];
int m_rxcnt;
int m_loginerr;
int m_lastmsg;
HANDLE m_thread_handle;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SMARTSOCKET_H__493A5C13_645A_11D1_9DF4_0000CB280107__INCLUDED_)