summaryrefslogtreecommitdiffabout
path: root/PropsNetwork.cpp
authorMichael Krelin <hacker@klever.net>2011-04-27 14:18:48 (UTC)
committer Michael Krelin <hacker@klever.net>2011-04-27 14:18:48 (UTC)
commitc3b240e06bae3b663505e2b1c52eb67c34ddd3ea (patch) (side-by-side diff)
tree06793f5d56a8129bfdaaee441fc34fbb361ddb13 /PropsNetwork.cpp
parentd097b824b7fcad001c9581fb2e322bf3e3e5961d (diff)
downloadpumpkin-c3b240e06bae3b663505e2b1c52eb67c34ddd3ea.zip
pumpkin-c3b240e06bae3b663505e2b1c52eb67c34ddd3ea.tar.gz
pumpkin-c3b240e06bae3b663505e2b1c52eb67c34ddd3ea.tar.bz2
network settings: bind to specific ip address
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'PropsNetwork.cpp') (more/less context) (show whitespace changes)
-rwxr-xr-x[-rw-r--r--]PropsNetwork.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/PropsNetwork.cpp b/PropsNetwork.cpp
index b5585d7..2dd5913 100644..100755
--- a/PropsNetwork.cpp
+++ b/PropsNetwork.cpp
@@ -18,16 +18,17 @@ IMPLEMENT_DYNCREATE(CPropsNetwork, CPropertyPage)
CPropsNetwork::CPropsNetwork() : CPropertyPage(CPropsNetwork::IDD)
{
//{{AFX_DATA_INIT(CPropsNetwork)
m_ListenPort = 0;
m_SpeakPort = 0;
m_TimeOut = 0;
m_BlockSize = 0;
+ m_ListenAddress = _T("");
//}}AFX_DATA_INIT
}
CPropsNetwork::~CPropsNetwork()
{
}
void CPropsNetwork::DoDataExchange(CDataExchange* pDX)
@@ -38,16 +39,18 @@ void CPropsNetwork::DoDataExchange(CDataExchange* pDX)
DDX_Control(pDX, IDC_TIMESPIN, m_TimeSpinCtl);
DDX_Control(pDX, IDC_SPEAKSPIN, m_SpeakSpinCtl);
DDX_Control(pDX, IDC_LISTENSPIN, m_ListenSpinCtl);
DDX_Text(pDX, IDC_LISTENPORT, m_ListenPort);
DDX_Text(pDX, IDC_SPEAKPORT, m_SpeakPort);
DDX_Text(pDX, IDC_TIMEOUT, m_TimeOut);
DDV_MinMaxUInt(pDX, m_TimeOut, 5, 60);
DDX_Text(pDX, IDC_BLOCKSIZE, m_BlockSize);
+ DDX_Text(pDX, IDC_LISTENADDRESS, m_ListenAddress);
+ DDV_MaxChars(pDX, m_ListenAddress, 15);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPropsNetwork, CPropertyPage)
//{{AFX_MSG_MAP(CPropsNetwork)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()