test
This commit is contained in:
parent
c26b73c9a9
commit
61c5f6944a
@ -95,6 +95,7 @@ func (p *PacketAdminJoin) Bytes() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *PacketAdminServerWelcome) Read(b []byte) {
|
func (p *PacketAdminServerWelcome) Read(b []byte) {
|
||||||
|
|
||||||
r := bufio.NewReader(bytes.NewReader(b))
|
r := bufio.NewReader(bytes.NewReader(b))
|
||||||
p.ServerName, _ = r.ReadString(0)
|
p.ServerName, _ = r.ReadString(0)
|
||||||
p.OpenTTDVersion, _ = r.ReadString(0)
|
p.OpenTTDVersion, _ = r.ReadString(0)
|
||||||
@ -120,11 +121,12 @@ func handlePacket(p Packet, b []byte) {
|
|||||||
switch p.PType {
|
switch p.PType {
|
||||||
case AdminPacketServerProtocol:
|
case AdminPacketServerProtocol:
|
||||||
case AdminPacketServerWelcome:
|
case AdminPacketServerWelcome:
|
||||||
|
logInfoDebug("AdminPacketServerWelcome Raw : %v", b)
|
||||||
sp := PacketAdminServerWelcome{
|
sp := PacketAdminServerWelcome{
|
||||||
Packet: p,
|
Packet: p,
|
||||||
}
|
}
|
||||||
sp.Read(b)
|
sp.Read(b)
|
||||||
logInfoDebug("AdminPacketServerWelcome : %v", sp)
|
logInfoDebug("AdminPacketServerWelcome Val : %v", sp)
|
||||||
default:
|
default:
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user