Mercurial > flash_v2
comparison host/tools/testtool/win32/RemotePropertiesDialog.cpp @ 82:6736c52df507 ecos-sw-2000-04-14
Merge from eCos master repository on 2000-04-14-13:35:46-BST
| author | jlarmour |
|---|---|
| date | Tue, 18 Apr 2000 21:51:55 +0000 |
| parents | 435cced73e2f |
| children |
comparison
equal
deleted
inserted
replaced
| 81:89fef2181d7d | 82:6736c52df507 |
|---|---|
| 25 // RemotePropertiesDialog.cpp : implementation file | 25 // RemotePropertiesDialog.cpp : implementation file |
| 26 // | 26 // |
| 27 | 27 |
| 28 #include "stdafx.h" | 28 #include "stdafx.h" |
| 29 #include "RemotePropertiesDialog.h" | 29 #include "RemotePropertiesDialog.h" |
| 30 #include "eCosTestSocket.h" | 30 #include "eCosSocket.h" |
| 31 | 31 |
| 32 #ifdef _DEBUG | 32 #ifdef _DEBUG |
| 33 #define new DEBUG_NEW | 33 #define new DEBUG_NEW |
| 34 #undef THIS_FILE | 34 #undef THIS_FILE |
| 35 static char THIS_FILE[] = __FILE__; | 35 static char THIS_FILE[] = __FILE__; |
| 108 } | 108 } |
| 109 | 109 |
| 110 void CRemotePropertiesDialog::OnOK() | 110 void CRemotePropertiesDialog::OnOK() |
| 111 { | 111 { |
| 112 UpdateData(); | 112 UpdateData(); |
| 113 if(m_bFarmed && !CeCosTestSocket::IsLegalHostPort(CeCosTestSocket::HostPort(m_strResourceHost,m_nResourcePort))){ | 113 if(m_bFarmed && !CeCosSocket::IsLegalHostPort(CeCosSocket::HostPort(m_strResourceHost,m_nResourcePort))){ |
| 114 MessageBox(_T("Please provide a valid host/port combination for resource server")); | 114 MessageBox(_T("Please provide a valid host/port combination for resource server")); |
| 115 } else if (!m_bFarmed && !CeCosTestSocket::IsLegalHostPort(CeCosTestSocket::HostPort(m_strRemoteHost,m_nRemotePort))){ | 115 } else if (!m_bFarmed && !CeCosSocket::IsLegalHostPort(CeCosSocket::HostPort(m_strRemoteHost,m_nRemotePort))){ |
| 116 MessageBox(_T("Please provide a valid host/port combination for remote execution")); | 116 MessageBox(_T("Please provide a valid host/port combination for remote execution")); |
| 117 } else { | 117 } else { |
| 118 CeCosDialog::OnOK(); | 118 CeCosDialog::OnOK(); |
| 119 } | 119 } |
| 120 | 120 |
