Simple Udp server which will listen on the specified port when constructed. It stores the first message it receives, and then stops listening for more messages. The message can be retrieved using the getMessage method. Both run and getMessage are synchronized so that getMessage will block until the run method has exited, meaning we've either received a message or the receive operation has timed out.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.