Mercurial > vba-linux
view src/win32/GDBConnection.h @ 8:08a8e09ca414
add files required by automake
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:54:39 -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 > 10005 #pragma once6 #endif // _MSC_VER > 10007 // -*- C++ -*-8 // GDBConnection.h : header file9 //11 #include <winsock.h>13 /////////////////////////////////////////////////////////////////////////////14 // GDBPortDlg dialog16 class GDBPortDlg : public CDialog17 {18 int port;19 SOCKET sock;20 // Construction21 public:22 SOCKET getSocket();23 int getPort();24 GDBPortDlg(CWnd*pParent = NULL); // standard constructor26 // Dialog Data27 //{{AFX_DATA(GDBPortDlg)28 enum { IDD = IDD_GDB_PORT };29 CEdit m_port;30 //}}AFX_DATA32 // Overrides33 // ClassWizard generated virtual function overrides34 //{{AFX_VIRTUAL(GDBPortDlg)35 protected:36 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support37 //}}AFX_VIRTUAL39 // Implementation40 protected:41 // Generated message map functions42 //{{AFX_MSG(GDBPortDlg)43 virtual BOOL OnInitDialog();44 afx_msg void OnOk();45 afx_msg void OnCancel();46 afx_msg void OnClose();47 //}}AFX_MSG48 DECLARE_MESSAGE_MAP()49 };51 /////////////////////////////////////////////////////////////////////////////52 // GDBWaitingDlg dialog54 class GDBWaitingDlg : public CDialog55 {56 int port;57 SOCKET listenSocket;58 SOCKET sock;59 // Construction60 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 constructor66 // Dialog Data67 //{{AFX_DATA(GDBWaitingDlg)68 enum { IDD = IDD_GDB_WAITING };69 CStatic m_port;70 //}}AFX_DATA72 // Overrides73 // ClassWizard generated virtual function overrides74 //{{AFX_VIRTUAL(GDBWaitingDlg)75 protected:76 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support77 //}}AFX_VIRTUAL79 // Implementation80 protected:81 // Generated message map functions82 //{{AFX_MSG(GDBWaitingDlg)83 virtual BOOL OnInitDialog();84 afx_msg void OnCancel();85 afx_msg void OnClose();86 //}}AFX_MSG87 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_)