test
This commit is contained in:
parent
2a8fc76e3f
commit
e9296526c0
12
main.go
12
main.go
@ -106,6 +106,13 @@ func main() {
|
||||
}
|
||||
_, err = conn.Write(px.Bytes())
|
||||
|
||||
px = PacketAdminUpdateFrequency{
|
||||
Packet: Packet{PType: AdminPacketAdminUpdateFrequency},
|
||||
UpdateType: AdminUpdateCompanyInfo,
|
||||
UpdateFrequency: AdminFrequencyAutomatic,
|
||||
}
|
||||
_, err = conn.Write(px.Bytes())
|
||||
|
||||
px = PacketAdminUpdateFrequency{
|
||||
Packet: Packet{PType: AdminPacketAdminUpdateFrequency},
|
||||
UpdateType: AdminUpdateChat,
|
||||
@ -211,6 +218,11 @@ func main() {
|
||||
}
|
||||
sp.Read(b[:p.PLength])
|
||||
logInfoDebug("AdminPacketServerRConEnd :\n- Command: %s", sp.Command)
|
||||
if sp.Command == "clients" {
|
||||
for k, v := range clients {
|
||||
logInfoDebug("Client[%d] : %s - %d (%s)", k, v.Name, v.CompanyID, v.Address)
|
||||
}
|
||||
}
|
||||
default:
|
||||
logInfoDebug("Packet fully read : len : %d / type : %d", p.PLength, p.PType)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user