Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartUdpServer ¶
StartUdpServer starts a UDP server listening on the specified address and writes received data to the provided io.Writer. It continuously listens for incoming UDP packets and checks if the client's IP address is authorized. If the client is authorized, the received data is written to the provided io.Writer. If the client is not authorized, a warning message is logged and the server continues listening for incoming packets. If an error occurs while starting the server or reading UDP data, it is logged and returned as an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.