27 Commits
Author SHA1 Message Date
xtaci 052b09682f refine tests for better coverage
mv entropy related test to entropy_test.go
2025-12-19 21:59:05 +08:00
Coia Prant 6fa78d3144 refactor: use modern syntax for test & example (#317) 2025-12-09 17:19:25 +08:00
xtaci ec8e1bf5e3 add IKCP prefix to IFLUSH_xxx 2025-11-25 21:10:56 +08:00
xtaci bbe6fe0bc1 use [type] to format debug message, and changed logoutput to log, DebugLog to debugLog 2025-11-22 20:56:09 +08:00
JinnBlue a32123b5dc feat(trace): add trace log to enhance KCP debug (#308)
* feat(trace): add trace log to enhance KCP debug

* feat(trace): update comments
2025-11-22 12:00:20 +08:00
xtaci 02b2f025bd make flush() function to accept an enum instead of bool for better readability 2025-11-14 13:50:42 +08:00
xtaci f40284538d added a test for segmentHeap 2025-06-18 12:00:40 +08:00
IceFale 22f24b0c92 Adopt the usage of RingBuffer[T] for snd_buf. (#291) 2025-06-08 11:41:32 +08:00
xtaci 3653cc9fea add license to source codes 2024-07-25 21:35:37 +08:00
xtaci 582575ef06 Squashed commit of the following:
commit a8ae293a9ddee042c35e2501f93fa5dfa2425302
Merge: bdaf81e 1a84985
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 22:48:13 2020 +0800

    Merge branch 'master' into autotune

commit bdaf81e88e
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 22:38:31 2020 +0800

    add loc

commit ce66a98f95
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 19:53:42 2020 +0800

    lint

commit ad7383d8a3
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 19:05:35 2020 +0800

    fix typo

commit dc0fc2364c
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 16:47:14 2020 +0800

    adjust tests

commit ec45b72c39
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 16:45:17 2020 +0800

    remove obsolete decoder in listener

commit 827aa70e29
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 16:42:42 2020 +0800

    use hierarchical defensive receiving strategy

commit f5ca6b0e3a
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 16:34:30 2020 +0800

    optimize condition

commit ff34f7683f
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 15:18:00 2020 +0800

    fix test

commit a08b274651
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 15:13:20 2020 +0800

    solve compability issue with non FEC sender

commit ab7596783b
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 15:02:34 2020 +0800

    implements autotune in fec decoder

commit 260f61b3eb
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 9 14:34:48 2020 +0800

    hack 16-bit to identify FEC from packet

commit 105bfec567
Author: xtaci <daniel820313@gmail.com>
Date:   Fri Oct 2 21:38:47 2020 +0800

    add autotune
2020-10-09 22:52:11 +08:00
xtaci 1b7e2c5067 using lossyconn as sophisticated link test 2019-05-23 17:28:14 +08:00
xtaci 2500c38813 lint 2018-12-27 15:05:38 +08:00
xtaci f48db19e7a bounds check elimation in core loop 2018-10-08 20:09:18 +08:00
Jin Qing d35d2adbb9 Let iclock() return currentMs() 2018-09-25 16:10:00 +08:00
xtaci df437e2b8e hide some internal struct 2017-06-03 19:22:40 +08:00
xtaci ea6485b855 report allocs in flush test 2017-03-28 10:52:48 +08:00
xtaci 47a794dddb remove unused kcp.xmit 2017-03-23 15:59:39 +08:00
xtaci 50c1512c98 use range instead of i++ 2017-03-22 16:21:56 +08:00
xtaci 993d72d876 shorten critical code path 2017-03-22 15:26:23 +08:00
xtaci 095dc4fccf reimplement ack nodelay 2017-03-03 13:03:49 +08:00
xtaci b7a1421897 add sink tests 2017-03-02 16:03:39 +08:00
xtaci 481baf3264 fix test 2017-01-14 13:26:23 +08:00
xtaci 1e78ef698f upd test 2016-08-13 23:33:52 +08:00
xtaci 83cecdd447 do not update_ack() when the input packet is recovered from FEC 2016-08-10 14:42:11 +08:00
xtaci 29b3ad0553 golint 2016-08-06 10:40:11 +08:00
xtaci bee3d6a000 golint test 2016-08-06 10:38:48 +08:00
xtaci 4976678721 lint 2016-06-29 22:18:39 +08:00