Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-19 17:37:01 +0000
committerStijn Buys <ingar@osirion.org>2008-02-19 17:37:01 +0000
commit41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 (patch)
treeabe7fa4544c22ba0cfa6375fd56f2e596f1bf626 /src/net
parent7daaf66869b7b9f85f71b1aa5e9a1b4c40710f33 (diff)
client-to-server connection
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;
}