V1.17 [2022-01-09] - perf: server/client MaximizeSendReceiveBuffersToOSLimit option to set send/recv buffer sizes to OS limit. avoids drops due to small buffers under heavy load. V1.16 [2022-01-06] - fix: SendUnreliable respects ArraySegment.Offset - fix: potential bug with negative length (see PR #2) - breaking: removed pause handling because it's not necessary for Mirror anymore V1.15 [2021-12-11] - feature: feature: MaxRetransmits aka dead_link now configurable - dead_link disconnect message improved to show exact retransmit count V1.14 [2021-11-30] - fix: Send() now throws an exception for messages which require > 255 fragments - fix: ReliableMaxMessageSize is now limited to messages which require <= 255 fragments V1.13 [2021-11-28] - fix: perf: uncork max message size from 144 KB to as much as we want based on receive window size. fixes https://github.com/vis2k/kcp2k/issues/22 fixes https://github.com/skywind3000/kcp/pull/291 - feature: OnData now includes channel it was received on V1.12 [2021-07-16] - Tests: don't depend on Unity anymore - fix: #26 - Kcp now catches exception if host couldn't be resolved, and calls OnDisconnected to let the user now. - fix: KcpServer.DualMode is now configurable in the constructor instead of using #if UNITY_SWITCH. makes it run on all other non dual mode platforms too. - fix: where-allocation made optional via virtuals and inheriting KcpServer/Client/Connection NonAlloc classes. fixes a bug where some platforms might not support where-allocation. V1.11 rollback [2021-06-01] - perf: Segment MemoryStream initial capacity set to MTU to avoid early runtime resizing/allocations V1.10 [2021-05-28] - feature: configurable Timeout - allocations explained with comments (C# ReceiveFrom / IPEndPoint.GetHashCode) - fix: #17 KcpConnection.ReceiveNextReliable now assigns message default so it works in .net too - fix: Segment pool is not static anymore. Each kcp instance now has it's own Pool. fixes #18 concurrency issues V1.9 [2021-03-02] - Tick() split into TickIncoming()/TickOutgoing() to use in Mirror's new update functions. allows to minimize latency. => original Tick() is still supported for convenience. simply processes both! V1.8 [2021-02-14] - fix: Unity IPv6 errors on Nintendo Switch - fix: KcpConnection now disconnects if data message was received without content. previously it would call OnData with an empty ArraySegment, causing all kinds of weird behaviour in Mirror/DOTSNET. Added tests too. - fix: KcpConnection.SendData: don't allow sending empty messages anymore. disconnect and log a warning to make it completely obvious. V1.7 [2021-01-13] - fix: unreliable messages reset timeout now too - perf: KcpConnection OnCheckEnabled callback changed to a simple 'paused' boolean. This is faster than invoking a Func every time and allows us to fix #8 more easily later by calling .Pause/.Unpause from OnEnable/OnDisable in MirrorTransport. - fix #8: Unpause now resets timeout to fix a bug where Mirror would pause kcp, change the scene which took >10s, then unpause and kcp would detect the lack of any messages for >10s as timeout. Added test to make sure it never happens again. - MirrorTransport: statistics logging for headless servers - Mirror Transport: Send/Receive window size increased once more from 2048 to 4096. V1.6 [2021-01-10] - Unreliable channel added! - perf: KcpHeader byte added to every kcp message to indicate Handshake/Data/Ping/Disconnect instead of scanning each message for Hello/Byte/Ping content via SegmentEquals. It's a lot cleaner, should be faster and should avoid edge cases where a message content would equal Hello/Ping/Bye sequence accidentally. - Kcp.Input: offset moved to parameters for cases where it's needed - Kcp.SetMtu from original Kcp.c V1.5 [2021-01-07] - KcpConnection.MaxSend/ReceiveRate calculation based on the article - MirrorTransport: large send/recv window size defaults to avoid high latencies caused by packets not being processed fast enough - MirrorTransport: show MaxSend/ReceiveRate in debug gui - MirrorTransport: don't Log.Info to console in headless mode if debug log is disabled V1.4 [2020-11-27] - fix: OnCheckEnabled added. KcpConnection message processing while loop can now be interrupted immediately. fixes Mirror Transport scene changes which need to stop processing any messages immediately after a scene message) - perf: Mirror KcpTransport: FastResend enabled by default. turbo mode according to: https://github.com/skywind3000/kcp/blob/master/README.en.md#protocol-configuration - perf: Mirror KcpTransport: CongestionControl disabled by default (turbo mode) V1.3 [2020-11-17] - Log.Info/Warning/Error so logging doesn't depend on UnityEngine anymore - fix: Server.Tick catches SocketException which happens if Android client is killed - MirrorTransport: debugLog option added that can be checked in Unity Inspector - Utils.Clamp so Kcp.cs doesn't depend on UnityEngine - Utils.SegmentsEqual: use Linq SequenceEqual so it doesn't depend on UnityEngine => kcp2k can now be used in any C# project even without Unity V1.2 [2020-11-10] - more tests added - fix: raw receive buffers are now all of MTU size - fix: raw receive detects error where buffer was too small for msgLength and result in excess data being dropped silently - KcpConnection.MaxMessageSize added for use in high level - KcpConnection.MaxMessageSize increased from 1200 bytes to to maximum allowed message size of 145KB for kcp (based on mtu, overhead, wnd_rcv) V1.1 [2020-10-30] - high level cleanup, fixes, improvements V1.0 [2020-10-22] - Kcp.cs now mirrors original Kcp.c behaviour (this fixes dozens of bugs) V0.1 - initial kcp-csharp based version