Initial commit

This commit is contained in:
2024-01-14 12:22:14 +01:00
commit 9b47e374c7
24 changed files with 529 additions and 0 deletions

17
server/core/Client.go Normal file
View File

@ -0,0 +1,17 @@
package core
import (
"net"
"time"
)
// Client represents a UDP client.
type Client struct {
address *net.UDPAddr
lastPacket time.Time
}
// String shows the client address.
func (c *Client) String() string {
return c.address.String()
}