Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Created December 15, 2014 00:04
Show Gist options
  • Save madhephaestus/b9f1baa66574a011bd33 to your computer and use it in GitHub Desktop.
Save madhephaestus/b9f1baa66574a011bd33 to your computer and use it in GitHub Desktop.
package com.neuronrobotics.test.nrdk.network;
import java.io.IOException;
import com.neuronrobotics.sdk.common.Log;
import com.neuronrobotics.sdk.common.MACAddress;
import com.neuronrobotics.sdk.common.device.server.BowlerAbstractServer;
import com.neuronrobotics.sdk.network.BowlerUDPServer;
import com.neuronrobotics.sdk.util.ThreadUtil;
public class NetworkServerTest extends BowlerAbstractServer {
BowlerUDPServer srv;
public NetworkServerTest() throws IOException{
super(new MACAddress());
Log.enableInfoPrint();
Log.info("Starting Bowler Server");
startNetworkServer();
while(true){
ThreadUtil.wait(100);
}
}
public static void main(String [] args){
try{
new NetworkServerTest();
}catch (Exception e){
e.printStackTrace();
System.err.println("###SERVER Failed out!");
System.exit(1);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment