summaryrefslogtreecommitdiff
path: root/src/network/network_admin.cpp
AgeCommit message (Collapse)Author
2021-02-27Codechange: [Network] replace _realtime_tick with std::chronoPatric Stout
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2019-12-21Codechange: Replace network related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_COMPANIES with range-based for loopsglx
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.
2019-02-03Change: Make a shortened network revision string for use in server queriesNiels Martin Hansen
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-10-12(svn r25845) -Add [FS#5756]: [Admin] Send info on bankruptcy quarters also ↵planetmaker
in ADMIN_PACKET_SERVER_COMPANY_INFO (zydeco)
2013-07-12(svn r25589) -Fix [FS#5646]: Ensure that sent and received length of json ↵planetmaker
strings are the same (based on patch by Xaroth)
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)
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-10-21(svn r24620) -Fix (r24619): Keep admin port API compatibility.frosch
2012-10-20(svn r24619) -Change: Check for bankruptcy on a monthly basis (ZxBioHazardZx)planetmaker
2012-01-20(svn r23826) -Fix [FS#4972]: the detailed performance rating window showed ↵rubidium
the cargo count of the current quarter instead of the last quarter like the tooltip says
2011-12-19(svn r23623) -Add: allow bi-directional communication with the AdminPort and ↵truebrain
GameScript
2011-11-04(svn r23115) -Fix [FS#4813]: allow accessing the server's client info as ↵rubidium
well in the admin network (dihedral)
2011-09-15(svn r22934) -Fix [FS#4771]: prevent authentication bypass for the admin ↵rubidium
port when a new game is started
2011-05-05(svn r22424) -Document: some more bitsrubidium
2011-05-04(svn r22423) -Document: some network stuffrubidium
2011-05-01(svn r22398) -Codechange: remove some defines from the tcp/admin code, so ↵rubidium
doxygen can create better documentation
2011-04-22(svn r22369) -Codechange: allocate ClientInfo when needed, i.e. don't ↵rubidium
allocate it for clients that are there to just get a list of companies. This means that these short lived clients won't be seen by the admin network in their client queries anymore
2011-04-22(svn r22368) -Codechange: move the IP address field from the ClientInfo to ↵rubidium
ClientSocket
2011-04-22(svn r22367) -Codechange: send ClientSockets instead of ClientInfos to the ↵rubidium
admin "core" as they send IP addresses to the admin "bots"
2011-04-22(svn r22362) -Codechange: NetworkFindClientInfoFromClientID -> ↵rubidium
NetworkClientInfo::GetByClientID
2011-02-15(svn r22085) -Fix: assert when connecting to the admin portsmatz
2011-01-22(svn r21890) -Cleanup: remove some unneeded includesrubidium
2011-01-08(svn r21741) -Fix (r21668): Some white space slipped past the commit hookplanetmaker
2011-01-03(svn r21701) -Codechange: ConsoleColour = TextColour, so make it that way ↵rubidium
and remove some unneeded casts
2010-12-30(svn r21668) -Feature: command logging using the admin interface (dihedral)rubidium
2010-12-06(svn r21420) -Fix: admins were always given the stats of company 0rubidium
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 r20964) -Add: disconnecting remote admins that fail to authenticaterubidium
2010-10-17(svn r20963) -Add: stubs for a remote administration connectionrubidium