mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-23 14:32:27 +08:00
补充
This commit is contained in:
@@ -31,10 +31,10 @@ type KcpMsg struct {
|
||||
ProtoData []byte
|
||||
}
|
||||
|
||||
func DecodeBinToPayload(data []byte, session *Session, kcpMsgList *[]*KcpMsg, xorKey []byte) {
|
||||
func DecodeBinToPayload(data []byte, convId uint64, kcpMsgList *[]*KcpMsg, xorKey []byte) {
|
||||
// xor解密
|
||||
endec.Xor(data, xorKey)
|
||||
DecodeLoop(data, session.conn.GetConv(), kcpMsgList)
|
||||
DecodeLoop(data, convId, kcpMsgList)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user