Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-07-10 | Remove: unused UDP protocol parts | Patric Stout | |
2021-06-13 | Codechange: convert printf DEBUG statements to fmt Debug statements | rubidium42 | |
2021-05-13 | Codechange: [Network] split CloseSocket and CloseConnection more clearly (#9261) | Patric Stout | |
* Codechange: [Network] split CloseSocket and CloseConnection more clearly - CloseSocket now closes the actual OS socket. - CloseConnection frees up the resources to just before CloseSocket. - dtors call CloseSocket / CloseConnection where needed. | |||
2021-05-12 | Change: reworked the debug levels for network facility (#9251) | Patric Stout | |
It now follows very simple rules: 0 - Fatal, user should know about this 1 - Error, but we are recovering 2 - Warning, wrong but okay if you don't know 3 - Info, information you might care about 4 - 5 - Debug #1 - High level debug messages 6 - Debug #2 - Low level debug messages 7 - Trace information | |||
2021-05-06 | Codechange: [Network] Use std::string for NetworkAddress' host name | rubidium42 | |
2021-05-01 | Codechange: encapsulate network error handling | rubidium42 | |
2021-04-27 | Codechange: move all NetworkGameInfo related functions to a single file | Patric Stout | |
It currently was a bit scattered over the place. Part of NetworkGameInfo is also the GRF Identifiers that goes with it. | |||
2021-04-27 | Change: [Network] Use string error messages instead of numeric error numbers ↵ | rubidium42 | |
that need to be looked up | |||
2021-04-27 | Fix: [Network] errno and strerror do not handle network errors on Windows | rubidium42 | |
2021-04-25 | Codechange: differentiate between UDP, TCP and compatibility MTU values | Rubidium | |
2021-04-25 | Codechange: allow different limits in packet sizes | Rubidium | |
2021-04-24 | Codechange: encapsulate reading the size of a Packet | Rubidium | |
2021-04-24 | Codechange: encapsulate writing data from Packets into sockets/files/buffers ↵ | Rubidium | |
to prevent packet state modifications outside of the Packet | |||
2021-04-24 | Codechange: encapsulate reading data from sockets into Packets to prevent ↵ | Rubidium | |
packet state modifications outside of the Packet | |||
2021-04-24 | Codechange: move more logic about packet size validity and reading into Packet | Rubidium | |
2021-04-20 | Remove: "language" field from server/client | Patric Stout | |
The original idea was that people could find a server they could talk in their native language on. This isn't really used in that way. There are several reasons for removing this: - the client also sends his "language" to the server, but nothing is doing anything with this. - flags are a bad way to represent languages, and over the years we had several (rightfully) complaints about this. - most servers have their language set to "All", and prefix the servername with the language it is about. This is a much more efficient way to do the same. All in all, this feature should go back to the drawing board. Maybe it could work in another form, but this form is not it. | |||
2021-04-20 | Remove: "map_name" from server announcements / listing | Patric Stout | |
The idea back in the days was nice, but it never resulted in anything useful. Most servers either read "(loaded game)" or "Random Map", neither being useful. It was meant for heightmaps, so you could find a server that was using a specific one .. but there are many things wrong with that idea. Mostly, servers tend to save and load savegames from time to time, after which the original heightmap used was lost. All in all, removing map_name all together is just better. | |||
2020-12-15 | Fix: workarounds for two emscripten bugs in the network stack | Patric Stout | |
2020-06-21 | Fix: Thread unsafe use of NetworkAddress::GetAddressAsString | Jonathan G Rennison | |
Remove static buffer form of NetworkAddress::GetAddressAsString. This is used in multiple threads concurrently, and is not thread-safe. Replace it with a form returning std::string. | |||
2019-11-10 | Cleanup: Removed SVN headers | S. D. Cloudt | |
2019-04-10 | Codechange: Use null pointer literal instead of the NULL macro | Henry Wilson | |
2019-03-26 | Codechange: Replaced SmallVector::[Begin|End]() with std alternatives | Henry Wilson | |
2019-03-26 | Codechange: Replaced SmallVector::Append() with ↵ | Henry Wilson | |
std::vector::[push|emplace]_back() | |||
2019-03-26 | Codechange: Replace SmallVector::Length() with std::vector::size() | Henry Wilson | |
2019-03-26 | Codechange: Replace SmallVector::Clear() with std::vector::clear() | Henry Wilson | |
2019-03-20 | Remove: ENABLE_NETWORK switch | Patric 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-05 | Remove: 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-04-30 | Fix b4b98e5165: Use FALLTHROUGH attribute with correct indentation. | J0an Josep | |
2017-08-13 | (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) | frosch | |
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 r26046) -Fix: handle a number of failure conditions from methods called ↵ | rubidium | |
in the network code | |||
2013-07-13 | (svn r25593) -Cleanup: remove a few stale #defines | rubidium | |
2012-09-19 | (svn r24532) -Change: try to read more UDP packets per game loop | rubidium | |
2011-11-12 | (svn r23193) -Codechange: don't cast away const unneededly | rubidium | |
2011-05-01 | (svn r22401) -Codechange: replace some defines in the udp code so doxygen ↵ | rubidium | |
can create better documentation | |||
2010-11-30 | (svn r21358) -Codechange: make some network function names conform to coding ↵ | rubidium | |
style | |||
2010-11-30 | (svn r21357) -Codechange: make it possible to resize the packet's buffer | rubidium | |
2010-08-01 | (svn r20289) -Codechange: Unify fall through coding style. | terkhen | |
2010-07-29 | (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). | terkhen | |
2010-03-23 | (svn r19508) -Codechange: remove semicolon after ↵ | smatz | |
DEFINE_UNAVAILABLE_CONTENT_RECEIVE_COMMAND and DEFINE_UNAVAILABLE_UDP_RECEIVE_COMMAND | |||
2010-02-25 | (svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make ↵ | yexo | |
sure all members are properly initialized | |||
2010-02-25 | (svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of ↵ | yexo | |
subclassing it | |||
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-11-03 | (svn r17963) -Codechange: some documentation style | rubidium | |
2009-10-04 | (svn r17693) -Cleanup: remove some unneeded includes | rubidium | |
2009-08-21 | (svn r17248) -Fix: add GPL license notice where appropriate | rubidium | |
2009-06-19 | (svn r16601) -Fix [FS#2880]: try 2... hopefully better this time | rubidium | |
2009-04-09 | (svn r16000) -Feature: IPv6 support | rubidium | |
2009-04-08 | (svn r15975) -Codechange: register each of the IPs we have bound to to the ↵ | rubidium | |
masterserver | |||
2009-04-08 | (svn r15972) -Codechange: remove unneeded parameter | rubidium | |