-
Notifications
You must be signed in to change notification settings - Fork 0
/
SOCKET.H
67 lines (51 loc) · 1.58 KB
/
SOCKET.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
58
59
60
61
62
63
64
65
66
// Message.h : interface of the CLogiView class
//
// Copyright (C) 1993-1994 George Mills and Softronics, Inc. Corporation
// All rights reserved.
//
class CLogiNetworkGate;
class CLogiDoc;
class CSocketWnd : public CWnd
{
protected: // create from serialization only
public:
CSocketWnd();
DECLARE_DYNCREATE(CSocketWnd)
// Attributes
public:
// Operations
public:
SOCKET iSocket; // Current Handle Send Socket
int iPort; // Current requested send Port
BOOL bConnected; // Flag that send socket is connected
BOOL bBusy; // Flag that send socket is busy
BOOL bNetworkOn; // flag for send enabled (enables message processing)
PHOSTENT phe; // Pointer to Host Entry for send
// CLogiView *pView;
CLogiDoc *pDoc;
CLogiNetworkGate *pObj;
public:
BOOL ConnectOn(int isocket, const char *networkaddress, CLogiDoc* pDoc, CLogiNetworkGate *pObj);
void ConnectOff(void);
// void SetView(CLogiView *pView);
BOOL SendData(char *Data);
// Implementation
public:
virtual ~CSocketWnd();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSocketWnd)
public:
//}}AFX_VIRTUAL
public:
// Generated message map functions
protected:
//{{AFX_MSG(CSocketWnd)
afx_msg LRESULT OnNetAcceptfinish(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnNetConnectack(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnNetConnectfinish(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
}
;
/////////////////////////////////////////////////////////////////////////////