Mercurial > vba-clojure
diff 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 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/GDBConnection.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,92 @@ 1.4 +#if !defined(AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_) 1.5 +#define AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_ 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 +// -*- C++ -*- 1.11 +// GDBConnection.h : header file 1.12 +// 1.13 + 1.14 +#include <winsock.h> 1.15 + 1.16 +///////////////////////////////////////////////////////////////////////////// 1.17 +// GDBPortDlg dialog 1.18 + 1.19 +class GDBPortDlg : public CDialog 1.20 +{ 1.21 + int port; 1.22 + SOCKET sock; 1.23 + // Construction 1.24 +public: 1.25 + SOCKET getSocket(); 1.26 + int getPort(); 1.27 + GDBPortDlg(CWnd*pParent = NULL); // standard constructor 1.28 + 1.29 + // Dialog Data 1.30 + //{{AFX_DATA(GDBPortDlg) 1.31 + enum { IDD = IDD_GDB_PORT }; 1.32 + CEdit m_port; 1.33 + //}}AFX_DATA 1.34 + 1.35 + // Overrides 1.36 + // ClassWizard generated virtual function overrides 1.37 + //{{AFX_VIRTUAL(GDBPortDlg) 1.38 +protected: 1.39 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.40 + //}}AFX_VIRTUAL 1.41 + 1.42 + // Implementation 1.43 +protected: 1.44 + // Generated message map functions 1.45 + //{{AFX_MSG(GDBPortDlg) 1.46 + virtual BOOL OnInitDialog(); 1.47 + afx_msg void OnOk(); 1.48 + afx_msg void OnCancel(); 1.49 + afx_msg void OnClose(); 1.50 + //}}AFX_MSG 1.51 + DECLARE_MESSAGE_MAP() 1.52 +}; 1.53 + 1.54 +///////////////////////////////////////////////////////////////////////////// 1.55 +// GDBWaitingDlg dialog 1.56 + 1.57 +class GDBWaitingDlg : public CDialog 1.58 +{ 1.59 + int port; 1.60 + SOCKET listenSocket; 1.61 + SOCKET sock; 1.62 + // Construction 1.63 +public: 1.64 + SOCKET getSocket(); 1.65 + SOCKET getListenSocket(); 1.66 + afx_msg LRESULT OnSocketAccept(WPARAM wParam, LPARAM lParam); 1.67 + GDBWaitingDlg(SOCKET s, int p, CWnd*pParent = NULL); // standard constructor 1.68 + 1.69 + // Dialog Data 1.70 + //{{AFX_DATA(GDBWaitingDlg) 1.71 + enum { IDD = IDD_GDB_WAITING }; 1.72 + CStatic m_port; 1.73 + //}}AFX_DATA 1.74 + 1.75 + // Overrides 1.76 + // ClassWizard generated virtual function overrides 1.77 + //{{AFX_VIRTUAL(GDBWaitingDlg) 1.78 +protected: 1.79 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.80 + //}}AFX_VIRTUAL 1.81 + 1.82 + // Implementation 1.83 +protected: 1.84 + // Generated message map functions 1.85 + //{{AFX_MSG(GDBWaitingDlg) 1.86 + virtual BOOL OnInitDialog(); 1.87 + afx_msg void OnCancel(); 1.88 + afx_msg void OnClose(); 1.89 + //}}AFX_MSG 1.90 + DECLARE_MESSAGE_MAP() 1.91 +}; 1.92 +//{{AFX_INSERT_LOCATION}} 1.93 +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 1.94 + 1.95 +#endif // !defined(AFX_GDBCONNECTION_H__DD73B298_E1A7_4A46_B282_E7A2B37FC9D9__INCLUDED_)