This commit is contained in:
injoyai
2024-10-16 16:14:33 +08:00
parent 68a04b7ed7
commit ad6225ac22
7 changed files with 233 additions and 35 deletions

View File

@@ -9,7 +9,7 @@ func TestFrame_Bytes(t *testing.T) {
f := Frame{
MsgID: 1,
Control: 1,
Type: Connect,
Type: TypeConnect,
Data: []byte{0x01},
}
hex := f.Bytes().HEX()
@@ -47,7 +47,7 @@ func TestDecode(t *testing.T) {
t.Log(string(UTF8ToGBK(resp.Data[68:])))
t.Log(DecodeConnect(resp.Data))
t.Log(MConnect.Decode(resp.Data))
//result, err := DecodeSecurityList(resp.Data)
//if err != nil {