view src/win32/GDBConnection.h @ 2:3549bbe597ed

adding makefile.am
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:47 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #if !defined(AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_)
2 #define AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // GDBConnection.h : header file
9 //
11 #include <winsock.h>
13 /////////////////////////////////////////////////////////////////////////////
14 // GDBPortDlg dialog
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
26 // Dialog Data
27 //{{AFX_DATA(GDBPortDlg)
28 enum { IDD = IDD_GDB_PORT };
29 CEdit m_port;
30 //}}AFX_DATA
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
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 };
51 /////////////////////////////////////////////////////////////////////////////
52 // GDBWaitingDlg dialog
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
66 // Dialog Data
67 //{{AFX_DATA(GDBWaitingDlg)
68 enum { IDD = IDD_GDB_WAITING };
69 CStatic m_port;
70 //}}AFX_DATA
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
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.
92 #endif // !defined(AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_)