QTfrontend/netserver.cpp
changeset 658 a7e625f5d9d0
parent 569 4e41c9e9e4d1
child 672 08ed55ea1e2a
--- a/QTfrontend/netserver.cpp	Thu Dec 13 23:07:16 2007 +0000
+++ b/QTfrontend/netserver.cpp	Fri Dec 14 15:02:46 2007 +0000
@@ -23,12 +23,11 @@
 #include <QTcpSocket>
 #include <QMessageBox>
 
-const quint16 HWNetServer::ds_port=46631;
-
 extern char delimeter;
 
-void HWNetServer::StartServer()
+void HWNetServer::StartServer(quint16 port)
 {
+  ds_port = port;
   hhnum=0;
   IPCServer = new QTcpServer(this);
   if (!IPCServer->listen(QHostAddress::Any, ds_port)) {