You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If anyone can figure this out, it would be greatly appreciated. If we run our server, which I am doing with a test case, you cannot add new Frame objects to the internal frame stack.
Here is the test code (server):
RobotServer rs = new RobotServer(Constants.PORT, Constants.WAIT_MS);
Thread server = new Thread(rs);
server.run();
for(int i = 0; i <= 100; i++) {
rs.add(new AmpFrame(new LocalTimestamp(), 11.23));
}
rs.setmIsRunning(false);
Here is the test code (janky test client):
int PORT = 5800;
try(
Socket server = new Socket("localhost", PORT);
BufferedReader in = new BufferedReader(new InputStreamReader(server.getInputStream()));
){
String fromServer;
while(server.isConnected()){
fromServer = in.readLine();
if(fromServer != null){
System.out.print(fromServer);
System.out.print("\n");
}
}
}catch(Exception e){
e.printStackTrace();
System.exit(1);
}
If anyone can figure this out, it would be greatly appreciated. If we run our server, which I am doing with a test case, you cannot add new Frame objects to the internal frame stack.
Here is the test code (server):
Here is the test code (janky test client):
All the server code is in robot.io.server.* (on the client-server branch)
The text was updated successfully, but these errors were encountered: