Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMessage ¶
type ClientMessage struct { Addr *net.UDPAddr Event eventmessage.EventMessage }
type Server ¶
type Server interface { Start() Close() ServerWriter ServerStats }
type ServerStats ¶
type ServerStats interface {
GetServerStats() SrvStats
}
type ServerWriter ¶
type UDPServer ¶
type UDPServer struct { DebugMode bool Conn *net.UDPConn Addr *net.UDPAddr Clients []net.UDPAddr Stats SrvStats ResQueue chan ClientMessage // contains filtered or unexported fields }
func CreateUDPServer ¶
CreateUDPServer returns a new UDP server with the provided parameters
func (*UDPServer) Close ¶
func (srv *UDPServer) Close()
Close closes the server and no more packages are read from UDP
func (*UDPServer) GetServerStats ¶
GetServerStats returns the current stats of the server like transfered packages
Click to show internal directories.
Click to hide internal directories.