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 reading data from sockets into Packets to prevent ↵ | Rubidium | |
packet state modifications outside of the Packet | |||
2021-04-24 | Codechange: move logic whether there is enough space in a packet to write ↵ | Rubidium | |
data into 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. | |||
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 | |||
2011-12-18 | (svn r23590) -Codechange: make the string validation settings better expandable | rubidium | |
2011-05-01 | (svn r22403) -Document: some more network/core code | rubidium | |
2010-11-30 | (svn r21357) -Codechange: make it possible to resize the packet's buffer | rubidium | |
2010-01-14 | (svn r18800) -Fix: in some cases with invalid packets one can crash recent ↵ | rubidium | |
trunk and 1.0.0 betas; 0.7.5 and before can't be crashed though. | |||
2009-10-09 | (svn r17746) -Codechange: 'operator new' doesn't return NULL, ↵ | smatz | |
NetworkSend_Init() is useless | |||
2009-08-21 | (svn r17248) -Fix: add GPL license notice where appropriate | rubidium | |
2009-03-06 | (svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns. | rubidium | |
2009-01-18 | (svn r15135) -Fix/Change: allow str_validate (part of receiving strings from ↵ | rubidium | |
the network) to pass newlines instead of replacing them with question marks, but only when asked to do so. | |||
2009-01-10 | (svn r14949) -Cleanup: pointer coding style | rubidium | |
2008-04-18 | (svn r12777) -Codechange: rename fatal() and error() in strgen, so it can ↵ | smatz | |
always have the NORETURN attribute | |||
2008-01-07 | (svn r11777) -Codechange: split the string header and make do not include it ↵ | rubidium | |
when it's not necessary. | |||
2007-12-25 | (svn r11691) -Codechange: move+rename helpers.hpp and only include it when ↵ | rubidium | |
it is really needed. | |||
2007-12-21 | (svn r11674) -Codechange: refactor some functions out of macros.h into more ↵ | rubidium | |
logical locations. | |||
2007-10-18 | (svn r11290) -Fix: obiwan in the assertion that checked for overflows when ↵ | rubidium | |
writing a packet, causing still correctly sized packets to cause assertions. | |||
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-02-02 | (svn r8546) -Codechange: add a seperate (wrapper) functions to send/receive ↵ | rubidium | |
booleans. | |||
2007-02-01 | (svn r8523) -Codechange: move all the Network(Recv|Send)_(uintXX|string) ↵ | rubidium | |
functions to Packet. | |||
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) |