This commit is contained in:
shoopea 2020-06-15 14:14:24 +02:00
parent c5f7f8effa
commit f6d57c116e

20
main.go
View File

@ -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)
}