diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-19 17:37:01 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-19 17:37:01 +0000 |
commit | 41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 (patch) | |
tree | abe7fa4544c22ba0cfa6375fd56f2e596f1bf626 /src/net | |
parent | 7daaf66869b7b9f85f71b1aa5e9a1b4c40710f33 (diff) |
client-to-server connection
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/net.h | 2 | ||||
-rw-r--r-- | src/net/tcpconnection.cc | 2 |
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; } |