Skip to content

Instantly share code, notes, and snippets.

@xdom
Created October 16, 2016 15:21
Show Gist options
  • Save xdom/6ea31a7637f6faf976cf2b4c851f0c28 to your computer and use it in GitHub Desktop.
Save xdom/6ea31a7637f6faf976cf2b4c851f0c28 to your computer and use it in GitHub Desktop.
public synchronized void start() {
try {
final DatagramSocket socket = new DatagramSocket(port);
thread = new UDPServerThread(socket, processor);
thread.start();
} catch (SocketException e) {
LOGGER.error("Unable to start server.", e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment