18 lines
247 B
Go
Raw Normal View History

2024-01-14 11:22:14 +00:00
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()
}