summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/Makefile.am1
-rw-r--r--src/net/netconsts.h26
3 files changed, 28 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5ea4bdad5..e516662e8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -420,6 +420,7 @@ SET(SRCS
net/npchandler.h
net/net.cpp
net/net.h
+ net/netconsts.h
net/partyhandler.h
net/playerhandler.h
net/sdltcpnet.cpp
diff --git a/src/Makefile.am b/src/Makefile.am
index b62844381..9664099af 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -551,6 +551,7 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
net/messageout.h \
net/net.cpp \
net/net.h \
+ net/netconsts.h \
net/npchandler.h \
net/partyhandler.h \
net/playerhandler.h \
diff --git a/src/net/netconsts.h b/src/net/netconsts.h
new file mode 100644
index 000000000..38f84ebaa
--- /dev/null
+++ b/src/net/netconsts.h
@@ -0,0 +1,26 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2013 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NET_DEFAULTS_H
+#define NET_DEFAULTS_H
+
+static const uint16_t DEFAULT_PORT = 6901;
+
+#endif // NET_DEFAULTS_H