Skip to content
Snippets Groups Projects
  1. Oct 06, 2016
  2. Oct 05, 2016
  3. Aug 11, 2016
    • Rogier's avatar
      Use the standard to_string() functions for C++11 (#4279) · b11720af
      Rogier authored
      If compiling according to a C++ version before C++11, then define
      std::to_string ourselves.
      
      Add a to_wstring version as well
      
      As std::to_string() for floating point types uses %.6f as floating
      point format converter, instead of %G, it needs special care.
      
      To preserve ftos() behavior (which is expected to use the %G format
      converter), it no longer uses to_string().
      b11720af
  4. Apr 11, 2016
  5. Mar 15, 2016
    • est31's avatar
      Add option to not send pre v25 init packet · af301831
      est31 authored
      The legacy init packet (pre v25) sends information about the client's
      password that a server could use to log in to other servers if the
      username and password are the same. All the other benefits of SRP of
      protocol v25 are missed if the legacy init packet is still sent during
      connection creation.
      
      This patch adds an option to not send the v25 init packet. Not sending
      the v25 packet means breaking compat with pre v25 servers, but as the
      option is not enabled by default, no servers are affected unless the
      user explicitly flips the switch. More than 90% of the servers on the
      serverlist support post v25 protocols.
      
      The patch also fixes a bug with greying out of non compliant servers
      being done wrongly, the min and max params were mixed.
      af301831
    • est31's avatar
      Much better API for auth.{cpp, h} · e0151d10
      est31 authored
      * No function overloading
      * Adhere coding style and with method names following
        lowercase_underscore_style
      * Use std::string in external API, handling these is
        much more fun
      e0151d10
  6. Mar 12, 2016
  7. Feb 21, 2016
  8. Feb 18, 2016
  9. Feb 15, 2016
  10. Feb 11, 2016
  11. Feb 08, 2016
  12. Dec 02, 2015
  13. Oct 14, 2015
  14. Sep 30, 2015
    • est31's avatar
      Fix some SRP issues · 0bf1984d
      est31 authored
      -> Remove memory allocation bugs
      -> Merge changes from upstream, enabling customizeable memory allocation
      0bf1984d
  15. Sep 01, 2015
  16. Aug 26, 2015
  17. Aug 24, 2015
    • ShadowNinja's avatar
      Clean up threading · e4bff8be
      ShadowNinja authored
        * Rename everything.
          * Strip J prefix.
          * Change UpperCamelCase functions to lowerCamelCase.
        * Remove global (!) semaphore count mutex on OSX.
        * Remove semaphore count getter (unused, unsafe, depended on internal
          API functions on Windows, and used a hack on OSX).
        * Add `Atomic<type>`.
        * Make `Thread` handle thread names.
        * Add support for C++11 multi-threading.
        * Combine pthread and win32 sources.
        * Remove `ThreadStarted` (unused, unneeded).
        * Move some includes from the headers to the sources.
        * Move all of `Event` into its header (allows inlining with no new includes).
        * Make `Event` use `Semaphore` (except on Windows).
        * Move some porting functions into `Thread`.
        * Integrate logging with `Thread`.
        * Add threading test.
      e4bff8be
  18. Aug 13, 2015
  19. Aug 02, 2015
  20. Jul 27, 2015
  21. Jul 23, 2015
    • est31's avatar
      Optional reconnect functionality · 3b50b276
      est31 authored
      Enable the server to request the client to reconnect.
      
      This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting.
      3b50b276
  22. Jul 17, 2015
  23. Jul 08, 2015
    • kwolekr's avatar
      Clean-up Minimap code · e234d8b3
      kwolekr authored
      - Fixed race conditions
      - Fixed null dereference
      - Fixed out-of-bounds array access
      - MinimapMapblock is now allocated and added to update queue only when enabled
      - Removed dependency on LocalPlayer
      - Fixed code style
      - Simplified expressions and program logic
      - Cleaned minimap object interfaces
      e234d8b3
  24. Jul 07, 2015
    • est31's avatar
      Client: better m_proto_ver initialisation · d92d3761
      est31 authored
      Previously, m_proto_ver was set to the serialisation version
      inside the legacy init packet.
      
      Now, if the server doesn't send a protocol version (protocols < 25),
      we set m_proto_ver to some value < 25 and > 0.
      d92d3761
  25. Jun 29, 2015
  26. Jun 27, 2015
  27. Jun 24, 2015
  28. May 19, 2015
  29. May 16, 2015
  30. May 11, 2015
    • est31's avatar
      Make early protocol auth mechanism generic, and add SRP · 82e35edf
      est31 authored
      Adds everything needed for SRP (and everything works too),
      but still deactivated, as protocol v25 init packets aren't final yet.
      Can be activated by changing the LATEST_PROTOCOL_VERSION header to 25
      inside networkprotocol.h.
      82e35edf
  31. Apr 17, 2015
    • est31's avatar
      Refactor around translatePassword · f0a1379e
      est31 authored
      Change types for passed password from wstring to string, which removes converting
      back and forth in most cases. Move the narrow_to_wide conversion, where its neccessary,
      closer to irrlicht. Remove trailing spaces in guiPasswordChange.cpp. Make parameters for
      translatePassword passed as const reference.
      f0a1379e
  32. Apr 16, 2015
    • kwolekr's avatar
      Schematics: Refactor NodeResolver and add NodeResolveMethod · 479f3897
      kwolekr authored
      NodeResolver name lists now belong to the NodeResolver object instead of
      the associated NodeDefManager.  In addition to minimizing unnecessary
      abstraction and overhead, this move permits NodeResolvers to look up nodes
      that they had previously set pending for resolution.  So far, this
      functionality has been used in the case of schematics for
      serialization/deserialization.
      479f3897
  33. Apr 07, 2015
  34. Apr 06, 2015
  35. Apr 01, 2015
  36. Mar 31, 2015
    • Loïc Blot's avatar
      Connection::Receive(): receive Network Packet instead of SharedBuffer<u8>. · 1fe42564
      Loïc Blot authored
      Because we get a Buffer<u8> from ConnectionEvent, don't convert it to SharedBuffer<u8> and return it to Server/Client::Receive which will convert it to NetworkPacket
      Instead, put the Buffer<u8> directly to NetworkPacket and return it to packet processing
      This remove a long existing memory copy
      Also check the packet size directly into Connection::Receive instead of packet processing
      1fe42564
Loading