comparison src/win32/GDBConnection.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
comparison
equal deleted inserted replaced
0:8ced16adf2e1 1:f9f4f1b99eed
1 #if !defined(AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_)
2 #define AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // GDBConnection.h : header file
9 //
10
11 #include <winsock.h>
12
13 /////////////////////////////////////////////////////////////////////////////
14 // GDBPortDlg dialog
15
16 class GDBPortDlg : public CDialog
17 {
18 int port;
19 SOCKET sock;
20 // Construction
21 public:
22 SOCKET getSocket();
23 int getPort();
24 GDBPortDlg(CWnd*pParent = NULL); // standard constructor
25
26 // Dialog Data
27 //{{AFX_DATA(GDBPortDlg)
28 enum { IDD = IDD_GDB_PORT };
29 CEdit m_port;
30 //}}AFX_DATA
31
32 // Overrides
33 // ClassWizard generated virtual function overrides
34 //{{AFX_VIRTUAL(GDBPortDlg)
35 protected:
36 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
37 //}}AFX_VIRTUAL
38
39 // Implementation
40 protected:
41 // Generated message map functions
42 //{{AFX_MSG(GDBPortDlg)
43 virtual BOOL OnInitDialog();
44 afx_msg void OnOk();
45 afx_msg void OnCancel();
46 afx_msg void OnClose();
47 //}}AFX_MSG
48 DECLARE_MESSAGE_MAP()
49 };
50
51 /////////////////////////////////////////////////////////////////////////////
52 // GDBWaitingDlg dialog
53
54 class GDBWaitingDlg : public CDialog
55 {
56 int port;
57 SOCKET listenSocket;
58 SOCKET sock;
59 // Construction
60 public:
61 SOCKET getSocket();
62 SOCKET getListenSocket();
63 afx_msg LRESULT OnSocketAccept(WPARAM wParam, LPARAM lParam);
64 GDBWaitingDlg(SOCKET s, int p, CWnd*pParent = NULL); // standard constructor
65
66 // Dialog Data
67 //{{AFX_DATA(GDBWaitingDlg)
68 enum { IDD = IDD_GDB_WAITING };
69 CStatic m_port;
70 //}}AFX_DATA
71
72 // Overrides
73 // ClassWizard generated virtual function overrides
74 //{{AFX_VIRTUAL(GDBWaitingDlg)
75 protected:
76 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
77 //}}AFX_VIRTUAL
78
79 // Implementation
80 protected:
81 // Generated message map functions
82 //{{AFX_MSG(GDBWaitingDlg)
83 virtual BOOL OnInitDialog();
84 afx_msg void OnCancel();
85 afx_msg void OnClose();
86 //}}AFX_MSG
87 DECLARE_MESSAGE_MAP()
88 };
89 //{{AFX_INSERT_LOCATION}}
90 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
91
92 #endif // !defined(AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_)