summaryrefslogtreecommitdiff
path: root/src/const
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-14 20:05:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-14 20:05:49 +0300
commit46454b631d5fd78e07bb292328526639539b7ce3 (patch)
treea26f228526e760bed88701e09c473cc13e85562a /src/const
parent366ec0909c764257a19fcbcc17cfb3948c85e0a5 (diff)
downloadplus-46454b631d5fd78e07bb292328526639539b7ce3.tar.gz
plus-46454b631d5fd78e07bb292328526639539b7ce3.tar.bz2
plus-46454b631d5fd78e07bb292328526639539b7ce3.tar.xz
plus-46454b631d5fd78e07bb292328526639539b7ce3.zip
Move netconsts.h into const directory.
Diffstat (limited to 'src/const')
-rw-r--r--src/const/net/net.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/const/net/net.h b/src/const/net/net.h
new file mode 100644
index 000000000..a0bc58eee
--- /dev/null
+++ b/src/const/net/net.h
@@ -0,0 +1,36 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2013-2015 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 CONST_NET_NET_H
+#define CONST_NET_NET_H
+
+#if defined(__GXX_EXPERIMENTAL_CXX0X__)
+#include <cstdint>
+#else
+#include <stdint.h>
+#endif
+
+#ifdef TMWA_SUPPORT
+static const uint16_t DEFAULT_PORT = 6901;
+#else
+static const uint16_t DEFAULT_PORT = 6900;
+#endif
+
+#endif // CONST_NET_NET_H