summaryrefslogtreecommitdiff
path: root/src/network/core/host.cpp
AgeCommit message (Collapse)Author
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-27Fix #7165: Missed another 'Append() --> push_back()' replacement (#7548)PeterN
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Fix #7165: Missed 'Append() --> push_back()' replacementstormcone
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Find() with std::find()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replaced SmallVector::Find() const with suitable alternativesHenry Wilson
The use of std::none_of in network/core/host.cpp is driven by the non-const comparison operator use by NetworkAddress. A future commit should address the const_casts in that class to ensure const-correctness.
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-03-05Remove: BeOS support (deprecated by Haiku)Patric Stout
In 10 years there is no commit to change how BeOS works, and we have no active maintainer for it. It is unlikely it works in its current state (but not impossible). With the arrival of SDL2 (and removal of SDL), BeOS is no longer support. SDL2 suggests to use Haiku instead of BeOS.
2018-12-27Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined ↵glx
macro _WIN32
2018-04-29Remove: PSP supportPatric Stout
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
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-21(svn r17606) -Add: initial support for Haiku; a dedicated server with zlib ↵rubidium
and libpng compiles and links (for me). Something's fishy with the network so it doesn't actually work (yet)
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-14(svn r17169) -Codechange: apply coding style to some for statementssmatz
2009-06-01(svn r16491) -Codechange: Added parentheses around bitwise operators for ↵alberth
code style.
2009-04-24(svn r16134) -Change: do not add duplicates to the broadcast listrubidium
2009-04-08(svn r15974) -Fix (r15969): win32 compilation was broken (again)glx
2009-04-07(svn r15969) -Codechange: make the list of broadcast addresses virtually ↵rubidium
unlimited.
2009-04-03(svn r15938) -Fix: broadcast addresses detection was broken for win32glx
2009-04-03(svn r15930) -Fix (r15926): MSVC compilationglx
2009-04-03(svn r15926) -Codechange: make the broadcast IP list less AF dependent.rubidium
2009-04-03(svn r15924) -Codechange: replace NetworkResolveHost with something less AF ↵rubidium
dependant.
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2008-12-13(svn r14671) -Fix: compilation was broken for some systemssmatz
2008-09-29(svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy ↵rubidium
doesn't guarantee the resulting string is '\0'-terminated.
2008-08-08(svn r14026) -Cleanup (r13995, r14004): trailing whitespacesglx
2008-08-04(svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found.rubidium
2008-08-04(svn r13995) -Fix (r13988): some warnings of the compile farm.rubidium
2008-08-04(svn r13990) -Fix (r13988): win32 compilation failedglx
2008-08-04(svn r13988) -Codechange: move the to IP resolving functions to a separate file.rubidium