author | unc0rr |
Sat, 18 Oct 2008 13:37:03 +0000 | |
changeset 1374 | f33fa81e583d |
parent 1066 | 1f1b3686a2b0 |
child 1375 | c95c6887b289 |
permissions | -rw-r--r-- |
315 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
884 | 3 |
* Copyright (c) 2006-2008 Igor Ulyanov <iulyanov@gmail.com> |
1374 | 4 |
* Copyright (c) 2008 Andrey Korotaev <unC0Rr@gmail.com> |
315 | 5 |
* |
6 |
* This program is free software; you can redistribute it and/or modify |
|
7 |
* it under the terms of the GNU General Public License as published by |
|
8 |
* the Free Software Foundation; version 2 of the License |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
18 |
*/ |
|
19 |
||
1374 | 20 |
#include <QMessageBox> |
315 | 21 |
#include "netserver.h" |
22 |
||
672
08ed55ea1e2a
- Fix a bug when server fails to start, and then connecting to another server on the same host (strange, the fix won't work on my machine)
unc0rr
parents:
658
diff
changeset
|
23 |
bool HWNetServer::StartServer(quint16 port) |
315 | 24 |
{ |
1374 | 25 |
ds_port = port; |
326 | 26 |
|
1374 | 27 |
return true; |
315 | 28 |
} |
29 |
||
30 |
void HWNetServer::StopServer() |
|
31 |
{ |
|
32 |
} |
|
33 |
||
34 |
||
35 |
quint16 HWNetServer::getRunningPort() const |
|
36 |
{ |
|
37 |
return ds_port; |
|
38 |
} |