1
This commit is contained in:
parent
78bcfbd176
commit
e07a170549
@ -110,8 +110,10 @@ func (this *WSPListener) decodePacket(conn net.Conn, buf []byte, offset *int, bu
|
|||||||
hdr.MsgId = msgHead.MsgId
|
hdr.MsgId = msgHead.MsgId
|
||||||
hdr.SocketHandle = msgHead.SocketHandle
|
hdr.SocketHandle = msgHead.SocketHandle
|
||||||
hdr.SeqId = msgHead.SeqId
|
hdr.SeqId = msgHead.SeqId
|
||||||
|
hdr.Data = buf[int(*offset) + f5.WSPROXYPACKHEAD_C_SIZE:
|
||||||
|
int(*offset) + f5.WSPROXYPACKHEAD_C_SIZE + int(msgHead.PackLen)]
|
||||||
this.ch <- hdr
|
this.ch <- hdr
|
||||||
*offset += 20 + int(msgHead.PackLen)
|
*offset += f5.WSPROXYPACKHEAD_C_SIZE + int(msgHead.PackLen)
|
||||||
} else {
|
} else {
|
||||||
warning = true
|
warning = true
|
||||||
*offset++
|
*offset++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user