test
This commit is contained in:
parent
c5f7f8effa
commit
f6d57c116e
20
main.go
20
main.go
@ -93,6 +93,26 @@ func main() {
|
||||
}
|
||||
sp.Read(b[:p.PLength])
|
||||
logInfoDebug("AdminPacketServerDate :\n- Date: %d", sp.Date)
|
||||
case AdminPacketServerClientJoin:
|
||||
sp := PacketAdminServerClientJoin{
|
||||
Packet: p,
|
||||
}
|
||||
sp.Read(b[:p.PLength])
|
||||
logInfoDebug("AdminPacketServerClientJoin :\n- ClientID: %d", sp.ClientID)
|
||||
case AdminPacketServerClientInfo:
|
||||
sp := PacketAdminServerClientInfo{
|
||||
Packet: p,
|
||||
}
|
||||
sp.Read(b[:p.PLength])
|
||||
logInfoDebug("AdminPacketServerClientInfo :\n- ClientID: %d\n- Name: %s\n- Lang: %d\n- Date: %d\n- CompanyID: %d", sp.ClientID, sp.Address, sp.Name, sp.Lang, sp.Date, sp.CompanyID)
|
||||
case AdminPacketServerClientError:
|
||||
sp := PacketAdminServerClientError{
|
||||
Packet: p,
|
||||
}
|
||||
sp.Read(b[:p.PLength])
|
||||
uint32
|
||||
uint8
|
||||
logInfoDebug("AdminPacketServerClientError :\n- ClientID: %d\n- ErrorID: %d", sp.ClientID, sp.ErrorID)
|
||||
default:
|
||||
logInfoDebug("Packet fully read : len : %d / type : %d", p.PLength, p.PType)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user