- Feb 16, 2015
-
-
Loïc Blot authored
NetworkPacket.cpp: * Remove some deprecated functions, we must use streaming interface * m_data converted from u8* to std::vector<u8> * Add an exporter to forge packet to Connection object * implement operator << std::wstring. n * implement operator << std::string * dynamic resize when write packet content. * fix string writing and performances. * create ServerCommandFactory, used by client to get useful informations about packet processing (sending). * Reliability * Transmit channel * Implement putRawString for some ugly char (_INIT packet), and use it. * Many packet read and write migrated * Implement oldForgePacket to interface writing with current connection * fix U8/char/bool writing * fix string writing and performances. * add some missing functions * Use v3s16 read instead of reading x,y,z separately * Add irr::video::SColor support into packets * Add some missing handlers * Add a template function to increase offset * Throw a serialization error on packet reading (must be improved) PacketFactories: * Create ServerCommandFactory, used by client to get useful informations about packet processing (sending). * Create ClientCommandFactory, used by server to get useful informations about packet processing (sending). Client.cpp: * implement NetworkPacket ::Send interface. * Move packet handlers to a dedicated file * Remove Client::Send(SharedBuffer) Server.cpp: * implement NetworkPacket ::Send interface. * Rewrite all packets using NetworkPacket * Move packet handlers to a dedicated file * Remove Server::Send(SharedBuffer) ClientIface.cpp: * Remove sendToAll(SharedBuffer<u8>) Connection.hpp rework: * Remove duplicate include * Remove duplicate negation * Remove a useless variable * Improve code performance by using a m_peers_list instead of scanning m_peers map * Remove Connection::Send(SharedBuffer) * Fix useafterfree into NetworkPacket Sending * Remove unused Connection::sendToAll Test.cpp: * Remove dead code * Update tests to use NetworkPackets Misc: * add new wrappers to Send packets in client, using NetworkPacket * Add NetworkPacket methods for Connection * coding style fix * dead code since changes cleanup * Use v3s16 read instead of reading x,y,z separately in some packets * Use different files to handle packets received by client and server * Cleanup: Remove useless includes ok @Zeno- Tested by @Zeno- @VanessaE and @nerzhul on running servers
-
rubenwardy authored
-
- Feb 15, 2015
- Feb 14, 2015
- Feb 13, 2015
-
-
Zeno- authored
-
- Feb 12, 2015
-
-
Loïc Blot authored
This fixes #1573
-
Jakub Vaněk authored
-
ngosang authored
-
BlockMen authored
-
ngosang authored
-
Loïc Blot authored
main.cpp rework * Move ClientLauncher class to a dedicated file * ClientLauncher now owns print_video_modes and speed_tests functions (they are only called by him) * Move GameParams to shared/gameparams.h because it's shared between server and client and launcher need to know it * Move InputHandlers class to client/inputhandler.h * Cleanup includes
-
Rui authored
-
Rui authored
https://forum.minetest.net/viewtopic.php?f=6&t=11201 Fixed this bug.
-
Loïc Blot authored
-
ngosang authored
-
Loïc Blot authored
No functionnal change
-
est31 authored
Fixes warning: src/lua/src/loslib.c:60: Warning: the use of `tmpnam' is dangerous, better use `mkstemp'
-
Zeno- authored
-
- Feb 11, 2015
-
-
ngosang authored
-
Loïc Blot authored
Don't permit to open inventory is playerCAO isn't present. This prevent to open an empty inventory at player load. ok @zeno-
-
Loïc Blot authored
-
Loïc Blot authored
-
Zeno- authored
* Increase performance (client) * Avoid changing a global value to solve a local problem
-
ShadowNinja authored
-
Zeno- authored
* Increase performance (client) * Avoid changing a global value to solve a local problem
-
Markus Koschany authored
Minetest fails to build on GNU/Hurd due to a name clash with OSX/Apple, both are defining the __MACH__ keyword. This commit fixes the issue.
-
- Feb 10, 2015
-
-
Zeno- authored
Before patch, function consumes up to ~8% of the main server loop. After, ~0% (below level of 2 places of significance)
-
Loïc Blot authored
-
est31 authored
Also simplify wget steps and apt-get install zlib1g-dev libjsoncpp-dev
-
Loïc Blot authored
-
ngosang authored
-
Loïc Blot authored
* Move networkcode to a dedicated directory * Rename clientserver.h to network/networkprotocol.h (Better name) and sanitize some includes * Create object NetworkPacket * It stores command (opcode) and data separated * It also stores peer_id * Data reading can be done by using a streaming interface * Change packet routing analysis * Remove old conditional analysis * Now uses function pointed analysis and add connection state ({Client,Server}::handlers) * Connection state permit to categorize condition to handle before analyze packets * Create a handler for depreciated messages, instead of duplicating code
-
- Feb 08, 2015
-
-
kwolekr authored
-
- Feb 07, 2015
-
-
gregorycu authored
-