Created
December 15, 2014 00:04
-
-
Save madhephaestus/b9f1baa66574a011bd33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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