Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisconnectUDPClient ¶
func DisconnectUDPClient(client *UDPClient)
DisconnectUDPClient disconnects a client from its server
func SendMessageToServer ¶
func SendMessageToServer(client *UDPClient, event eventmessage.EventMessage)
SendMessageToServer sends a message to the connected server
Types ¶
type ServerMessage ¶
type UDPClient ¶
type UDPClient struct { DebugMode bool Conn *net.UDPConn SrvAddr *net.UDPAddr ResQueue chan ServerMessage // contains filtered or unexported fields }
The UDPClient struct holds the udp client of AEDAclient
func ConnectUDPClient ¶
ConnectUDPClient function connects a client to a server
Click to show internal directories.
Click to hide internal directories.