1
This commit is contained in:
parent
30729a2272
commit
75d8a8b38d
@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
type WSPListener_ struct {
|
type WSPListener_ struct {
|
||||||
listener net.Listener
|
listener net.Listener
|
||||||
ch <-chan *q5.MsgHdr
|
ch chan *q5.MsgHdr
|
||||||
msgList q5.ListHead
|
msgList q5.ListHead
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,6 +119,7 @@ func (this *WSPListener_) decodePacket(buf []byte, offset *int, bufLen int) {
|
|||||||
hdr := new(q5.MsgHdr)
|
hdr := new(q5.MsgHdr)
|
||||||
hdr.MsgId = int(buf[*offset + 2]) + int(buf[*offset + 3] << 16)
|
hdr.MsgId = int(buf[*offset + 2]) + int(buf[*offset + 3] << 16)
|
||||||
//hdr.SeqId = int(recvBuf[4]) + int(recvBuf[5] )
|
//hdr.SeqId = int(recvBuf[4]) + int(recvBuf[5] )
|
||||||
|
this.ch <- hdr
|
||||||
*offset += 20 + packLen
|
*offset += 20 + packLen
|
||||||
} else {
|
} else {
|
||||||
warning = true
|
warning = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user