Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/net.h2
-rw-r--r--src/net/tcpconnection.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/net/net.h b/src/net/net.h
index ab6594d..cdcf4bb 100644
--- a/src/net/net.h
+++ b/src/net/net.h
@@ -17,6 +17,8 @@ const unsigned int FRAMESIZE = 1152;
/// maximum number of pending client connections, hard limit
const unsigned int MAXPENDINGCONNECTIONS = 32;
+/// default network port
+const unsigned int DEFAULTPORT = 8042;
}
#endif // __INCLUDED_NET_H__
diff --git a/src/net/tcpconnection.cc b/src/net/tcpconnection.cc
index e4ff009..0aa4fe6 100644
--- a/src/net/tcpconnection.cc
+++ b/src/net/tcpconnection.cc
@@ -160,7 +160,7 @@ void TCPConnection::send(std::string const &msg)
return;
if (msg.size() > FRAMESIZE) {
- con_warn << "Network message exceeds " << FRAMESIZE << " bytes!" << std::endl;
+ con_warn << "Network message exceeds " << FRAMESIZE << " bytes!\n";
return;
}