Commit Graph
25 Commits
Author SHA1 Message Date
lotodore 86c58fc7c8 Switching from ASN.1 (asn1c) to google protocol buffers. Some things are still missing (packet verification, tests, ...), this is very early stuff. 2012-09-18 15:57:58 +02:00
lotodore 3462a7060e Reverting invalid changes. 2012-03-31 20:17:10 +00:00
lotodore ac0041cb8f Preparing "reportGameName" network message. 2012-03-31 20:14:11 +00:00
lotodore aad9e271db Cleaning up the different timeouts and how players can be removed from the game. 2011-12-11 14:54:17 +00:00
lotodore 0ed12e0ac8 Switching license from GPL2 to AGPL3. 2011-07-02 14:38:06 +00:00
lotodore 5730cd321d Rewriting network receive functions. This is still work in progress to make it more efficient. 2011-02-19 23:47:24 +00:00
lotodore 0618dbd74e Rename SendDataManager to SendBuffer, which is a clear and proper name. (Part 2: File names) 2011-02-19 18:18:00 +00:00
lotodore d3d16b8f4c Rename SendDataManager to SendBuffer, which is a clear and proper name. 2011-02-19 17:55:21 +00:00
lotodore b824b8beb7 Moving send buf limitation to its proper place. 2011-02-19 15:19:50 +00:00
lotodore f7315cd9e5 Improving possible multithreading in new send code. 2011-02-19 15:01:50 +00:00
lotodore 8279868417 Further simplifying sending network data. This improves performance, because sending sessions no longer need to be looked up in a map. 2011-02-19 13:56:49 +00:00
lotodore db3fa66ec5 Place new send code in a separate class, and use it also for the chat cleaner communication. Data class "encoded packet" is no longer used, it was overhead. 2011-02-18 19:22:44 +00:00
lotodore 46a136bc8b Tremendously improving the speed of the network send code (ticket #52). The code has also been simplified, and uses some kind of double buffering as in graphics programming. There are now a lot less memory allocations and a lot less copying. However, memory usage is also increased. 2011-02-18 18:36:30 +00:00
lotodore 02518c67b2 Reformatting code using Kernighan & Ritchie style, tabs, tab width=4.
Command line: astyle --style=kr --indent=force-tab=4 --lineend=linux -n -r <file names>
2011-02-11 20:02:08 +00:00
lotodore d068c6203d Adding client for chat cleaner. 2009-08-14 18:56:45 +00:00
lotodore 9a8f2ae01a Fixing some ASN.1 related bugs. Playing a game works now, but there is still an issue when the lobby is started after the game. 2009-08-03 20:42:32 +00:00
lotodore 945c4a102a Completely rewriting all NetPacket stuff to use ASN.1. Finally this big chunk of work is completed. Compiles and links fine, but still partly non-functional.
PLEASE NOTE: This is NOT COMPATIBLE to 0.7.x, because it is a new network protocol.
2009-08-02 15:11:40 +00:00
lotodore e308108803 Adding paranoia check. 2009-07-22 20:19:56 +00:00
lotodore 470bbb5eed Trying to fix strange sender crash. 2009-06-20 11:15:06 +00:00
lotodore 744e5c81d4 Small fixes. Removing some TODO comments which are no longer valid. 2009-06-13 10:52:12 +00:00
lotodore a33d9b7c3b Trying to fix strange timer crashes. 2009-06-09 23:04:04 +00:00
lotodore 938d13e31a Send all available data in one chunk within the send handler. This improves speed. 2009-06-08 21:54:24 +00:00
lotodore c8594e8e7b Canceling asio timers has bad semantics, and causes loads of trouble. Therefore, cancelled timers are simply marked as such, and the asio callback is silently ignored. This fixes several crashes, if players were removed from a game due to an error, because some timers were not cancelled. *sigh* This one took a lot of nerve. 2009-06-07 23:25:13 +00:00
lotodore 5f3369432a Rewriting sender yet again to fit the new asio design. Polling for new send data is no longer needed, this also reduces lag. 2009-06-07 08:51:43 +00:00
lotodore 8ab2fed1a2 More restructuring. Still broken. 2009-05-10 22:21:20 +00:00