diff options
author | truelight <truelight@openttd.org> | 2007-02-08 12:27:53 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-02-08 12:27:53 +0000 |
commit | c46a1cc2f685b4351b429b382a28a468fbf2c623 (patch) | |
tree | 18108e9e6f3d116f39e99f84eb6540da848e01cf /src/network/core | |
parent | 2a7682be799ed35b6a63373be232332657b262da (diff) | |
download | openttd-c46a1cc2f685b4351b429b382a28a468fbf2c623.tar.xz |
(svn r8631) -Add: added parameter -l ip[:port] to ./openttd, which redirects DEBUG() to a remote connection over TCP
For example, launch on 192.168.0.1 with, say, netcat a listener: netcat -l -p 3982
Launch OpenTTD on a remote host (say, PSP): ./openttd -l 192.168.0.1 -d9
And you get all debug information on 192.168.0.1. Very useful for debugging Portable systems.
Diffstat (limited to 'src/network/core')
-rw-r--r-- | src/network/core/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/core/config.h b/src/network/core/config.h index 63b54f7ce..93145e426 100644 --- a/src/network/core/config.h +++ b/src/network/core/config.h @@ -17,6 +17,7 @@ enum { NETWORK_MASTER_SERVER_PORT = 3978, ///< The default port of the master server (UDP) NETWORK_DEFAULT_PORT = 3979, ///< The default port of the game server (TCP & UDP) + NETWORK_DEFAULT_DEBUGLOG_PORT = 3982, ///< The default port debug-log is sent too (TCP) SEND_MTU = 1460, ///< Number of bytes we can pack in a single packet |