summaryrefslogtreecommitdiff
path: root/src/network/core/tcp_admin.cpp
AgeCommit message (Collapse)Author
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-05-07Fix #8117: Memory leak in admin port (#8122)glx22
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-11-22(svn r26056) -Fix: a number of possibly uninitialised variablesrubidium
2013-07-11(svn r25588) -Feature [FS#5643]: PING and PONG packets for admin port (Xaroth)planetmaker
2013-07-11(svn r25587) -Add FS#5643: Conclude rcon output sent to admin clients with ↵planetmaker
an RCON_END packet (Xaroth)
2011-12-19(svn r23623) -Add: allow bi-directional communication with the AdminPort and ↵truebrain
GameScript
2011-10-15(svn r23031) -Fix [FS#4804]: for the admin "bots" there was no distinction ↵rubidium
between bankruptcy and manual removal of companies even though the API suggested that
2011-05-01(svn r22403) -Document: some more network/core coderubidium
2011-05-01(svn r22398) -Codechange: remove some defines from the tcp/admin code, so ↵rubidium
doxygen can create better documentation
2010-12-30(svn r21668) -Feature: command logging using the admin interface (dihedral)rubidium
2010-11-30(svn r21358) -Codechange: make some network function names conform to coding ↵rubidium
style
2010-10-17(svn r20975) -Add: logging of console output for remote admins (dihedral)rubidium
2010-10-17(svn r20974) -Add: remote console (rcon) for remote admins (dihedral)rubidium
2010-10-17(svn r20973) -Add: chat sending and receiving support for remote admins ↵rubidium
(dihedral)
2010-10-17(svn r20972) -Add: company statistics updates at intervals to remote admins ↵rubidium
(dihedral)
2010-10-17(svn r20971) -Add: company economy updates at intervals to remote admins ↵rubidium
(dihedral)
2010-10-17(svn r20970) -Add: company change notification to remote admins (dihedral)rubidium
2010-10-17(svn r20969) -Add: client info change notification to remote admins (dihedral)rubidium
2010-10-17(svn r20968) -Add: date notification of remote admins (dihedral)rubidium
2010-10-17(svn r20967) -Add: infrastructure to send information to remote admins at ↵rubidium
specific intervals (dihedral)
2010-10-17(svn r20963) -Add: stubs for a remote administration connectionrubidium