mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-07 03:54:15 -04:00
* Connection manager implementation to disconnect timed out users. * Connection manager implementation to disconnect timed out users.
20 lines
352 B
Go
20 lines
352 B
Go
package d2netpacket
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket/d2netpackettype"
|
|
"time"
|
|
)
|
|
|
|
type ServerClosedPacket struct {
|
|
TS time.Time `json:"ts"`
|
|
}
|
|
|
|
func CreateServerClosedPacket() NetPacket {
|
|
return NetPacket{
|
|
PacketType: d2netpackettype.ServerClosed,
|
|
PacketData: ServerClosedPacket{
|
|
TS: time.Now(),
|
|
},
|
|
}
|
|
}
|