Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-04-24 | Codechange: move the logic shrinking of the packets into the Packet itself | 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 | |
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-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: MorphOS / AmigaOS support | Patric Stout | |
In 10 years there is no commit to change how MorphOS 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), MorphOS is no longer support. There is an SDL2 port for MorphOS, but it is not maintained by upstream SDL2, and nobody can currently test it out. If anyone wants to re-add MorphOS, please do (revert this patch, fix the problems, and create a Pull Request). If you need any help doing so, let us know! It is not that we don't like MorphOS, it is that we don't have anyone fixing the problems :( | |||
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 | |||
2011-05-01 | (svn r22403) -Document: some more network/core code | rubidium | |
2011-02-12 | (svn r22068) -Codechange/Fix: return "connection lost" instead of "okay" ↵ | rubidium | |
when SendPackets closed the connection | |||
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-11-14 | (svn r21182) -Fix: possible just-freed memory reads | rubidium | |
2010-10-15 | (svn r20939) -Fix: some MSVC warnings | rubidium | |
2010-10-15 | (svn r20933) -Codechange: move some more client related methods and such to ↵ | rubidium | |
network_client.cpp | |||
2010-01-14 | (svn r18801) -Fix: in some cases error messages weren't properly sent to the ↵ | rubidium | |
client before closing the connection. As a result the client would say 'connection lost' when the cause was something completely different. | |||
2009-10-09 | (svn r17746) -Codechange: 'operator new' doesn't return NULL, ↵ | smatz | |
NetworkSend_Init() is useless | |||
2009-10-07 | (svn r17742) -Codechange: remove unused variable from Recv_Packet | 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-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 directly | rubidium | |
2009-01-22 | (svn r15206) -Fix [FS#2567]: memory corruption due to not properly cleanup ↵ | rubidium | |
up the mess when cancelling a download | |||
2009-01-20 | (svn r15163) -Change/Fix: use a non-blocking method to resolve the hostname ↵ | rubidium | |
and connect to game servers. | |||
2009-01-14 | (svn r15079) -Codechange: split tcp 'backend' and in-game handling like it ↵ | rubidium | |
is for UDP. | |||
2008-12-28 | (svn r14760) -Fix (rlongago): network connection of clients being closed ↵ | rubidium | |
twice (found due to added assertion in r14730) | |||
2008-12-23 | (svn r14730) -Codechange: remove the need for networkclientsockets and ↵ | rubidium | |
networkclientinfo structs to be in a contiguous piece of memory and put them in a pool. -Note: 255 should really be enough for now... making it any more means network protocol bumps. | |||
2008-12-23 | (svn r14721) -Codechange: s/NetworkTCPSocketHandler/NetworkClientSocket/ as ↵ | rubidium | |
it's (way) more descriptive what it's used for. | |||
2008-12-22 | (svn r14709) -Codechange: make a clearer distinction between 'unique' client ↵ | rubidium | |
identification ids and the indices into the clients/client info arrays. | |||
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. | |||
2008-04-18 | (svn r12765) -Codechange: move some stuff out of variables.h that required ↵ | rubidium | |
including other headers in variables.h. | |||
2008-01-13 | (svn r11828) -Codechange: include table/* as the last includes and remove an ↵ | rubidium | |
unneeded include from openttd.h. | |||
2007-12-25 | (svn r11692) -Codechange: move some functions from 'functions.h' to a more ↵ | rubidium | |
logical place and remove about 50% of the includes of 'functions.h' | |||
2007-12-25 | (svn r11691) -Codechange: move+rename helpers.hpp and only include it when ↵ | rubidium | |
it is really needed. | |||
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-02-01 | (svn r8525) -Codechange: make NetworkSend_Packet(s) and NetworkRecv_Packet ↵ | rubidium | |
functions of NetworkTCPSocketHandler. | |||
2007-02-01 | (svn r8521) -Codechange: initial step in converting Packet to a class; make ↵ | rubidium | |
and use constructors and functions related to the reading/saving the packet size. | |||
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-11 | (svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the ↵ | KUDr | |
pointer to allocated memory instead of modifying the pointer given as parameter | |||
2007-01-10 | (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, ↵ | rubidium | |
stillunknown and pv2b. | |||
2007-01-10 | (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files ↵ | KUDr | |
renamed to .cpp) |