mirror of
https://github.com/skywind3000/kcp.git
synced 2025-03-23 16:00:08 +08:00
Updated Network Layer (markdown)
parent
0f282ea190
commit
d70d949c3e
@ -22,3 +22,6 @@ kcp 的 input, output 方法用来对接下层的 udp 收发模块。而 ikcp_se
|
||||
你可能需要实现 UDP绘话管理,KCP,加密 等若干功能,那么最好的做法就是把他们实现成协议单元,然后串联起来成为协议栈,这样每一层可以
|
||||
单独开发调试,需要时再进行串联,这是网络库成熟的写法。
|
||||
|
||||
为了方便数据再协议栈中高性能的传递,你可以选择实现类似 linux skbuf 的数据结构来管理各个数据包:
|
||||
|
||||

|
||||
|
Loading…
Reference in New Issue
Block a user