summaryrefslogtreecommitdiff
path: root/src/network/core/core.h
AgeCommit message (Collapse)Author
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
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.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2010-12-22(svn r21595) -Codechange: Some header files had their name changed, update ↵alberth
the ifndef/define/endif lines.
2010-12-06(svn r21418) -Fix: core.h needs config.hrubidium
2010-12-05(svn r21405) -Codechange: prepare sending of company information in the UDP ↵rubidium
packet for longer company names (in bytes), by truncating the names if needed
2010-11-30(svn r21358) -Codechange: make some network function names conform to coding ↵rubidium
style
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-10-04(svn r17699) -Codechange: move #ifdef ENABLE_NETWORK till after the ↵rubidium
'generic' includes so compilation without network support doesn't get broken as easily by changes in header files
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-06-19(svn r16601) -Fix [FS#2880]: try 2... hopefully better this timerubidium
2009-04-07(svn r15971) -Codechange: make it possible for UDP socket handlers to bind ↵rubidium
to multiple sockets.
2009-04-07(svn r15967) -Codechange: do not access NetworkSocketHandler::has_quit directlyrubidium
2009-01-14(svn r15079) -Codechange: split tcp 'backend' and in-game handling like it ↵rubidium
is for UDP.
2008-12-22(svn r14712) -Codechange: split server and client side w.r.t. the storage of ↵rubidium
network related company information.
2008-05-30(svn r13343) -Codechange: reorder/move variable/functions in the network ↵rubidium
headers so that nothing from the network directory needs to include basically all network headers.
2007-03-07(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};rubidium
2007-03-07(svn r9050) -Codechange: Foo(void) -> Foo()rubidium
2007-02-23(svn r8857) -Documentation: Added some doxygen @file tags, repaired others ↵celestar
(the @file tag MUST be found before any line of code, that includes preprocessor directives).
2007-01-31(svn r8479) -Fix (r8459): Silenced VC warning C4099: 'Packet' : type name ↵KUDr
first seen using 'class' now seen using 'struct' -Codechange: 'typedef struct Packet' changed to 'struct Packet'
2007-01-30(svn r8461) -Feature: check for NewGRF compatability before actually ↵rubidium
downloading the map from a game server when connecting from the command prompt and internal console.
2007-01-30(svn r8459) -Codechange: move (Send|Recv)GRFIdentifier to ↵rubidium
NetworkSocketHandler, so it can also be used the TCP socket handler.
2007-01-28(svn r8445) -Cleanup: remove some @params from comments as the parameters ↵rubidium
did not exist anymore and add comments to several variables/functions.
2007-01-12(svn r8083) -Codechange: make a NetworkSocketHandler as base for all sockets ↵rubidium
and move a little of NetworkClientState functionality to the NetworkSocketHandler. Move the rest of the NetworkClientState to the new NetworkTCPSocketHandler class/struct, which is not yet implemented in an object oriented manner. The UDP socket handler now extends the NetworkSocketHandler instead of having a reference to a NetworkClientState.
2007-01-04(svn r7830) -Codechange: let NetworkCoreInitialize return a bool, so we have ↵rubidium
to set _network_available only once.
2007-01-04(svn r7829) -Codechange: move the network (core) initialization/shutdown ↵rubidium
functions into network/core, so the can be reused in the masterserver_updater.