From 41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 19 Feb 2008 17:37:01 +0000 Subject: client-to-server connection --- src/net/net.h | 2 ++ src/net/tcpconnection.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net') 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; } -- cgit v1.2.3