Skip to content

0.11.0

Compare
Choose a tag to compare
@dktapps dktapps released this 13 Apr 19:06

Changes since 0.10.0

General

  • pocketmine/binaryutils is now used for binary I/O instead of inbuilt classes. raklib\Binary has been removed.
  • Connecting clients with incompatible protocol versions will now be disconnected correctly. RakLibServer now accepts a protocol version override in the constructor.
  • RakLibServer now accepts a maximum MTU size constructor parameter.
  • RakLibServer autostart constructor parameter has been removed.
  • Address handling has been cleaned up in preparation for IPv6 support (adds an InternetAddress class in raklib\utils namespace).
  • Exceptions on bad packets will now only spam the logger in debug mode.

EncapsulatedPacket

  • Separated thread-copy encoding and RakNet protocol encoding. This is now both faster and easier to read.
    • The internal parameters have been removed from fromBinary() and toBinary().
    • fromInternalBinary() and toInternalBinary() functions have been added.

OpenConnectionRequest1

  • Fixed bug in encode method supplying incorrect arguments to str_pad().

ServerInstance interface

  • Typehints have been applied to PHP 7.2 standards.

UDPServerSocket

  • Constructor now requires InternetAddress instead of ThreadedLogger, string, int.
  • Exceptions will now be thrown on failure to open sockets, instead of using die().