polish
This commit is contained in:
parent
846e2d7760
commit
891d96f716
@ -90,7 +90,7 @@ class TestClient
|
||||
|
||||
try {
|
||||
Client client = new Client(configuration);
|
||||
client.setIdleTimeout(0);
|
||||
// client.setIdleTimeout(0);
|
||||
|
||||
client.listeners()
|
||||
.add(new dorkbox.network.connection.Listener.OnConnected<Connection>() {
|
||||
@ -105,11 +105,11 @@ class TestClient
|
||||
@Override
|
||||
public
|
||||
void created(final TestCow remoteObject) {
|
||||
// MUST run on a separate thread because remote object method invocations are blocking
|
||||
new Thread() {
|
||||
@Override
|
||||
public
|
||||
void run() {
|
||||
// MUST run on a separate thread because remote object method invocations are blocking
|
||||
RmiTest.runTests(connection, remoteObject, 1);
|
||||
System.err.println("DONE");
|
||||
}
|
||||
@ -123,7 +123,7 @@ class TestClient
|
||||
}
|
||||
});
|
||||
|
||||
client.connect(0);
|
||||
client.connect(3330);
|
||||
|
||||
Thread.sleep(999999999);
|
||||
} catch (Exception e) {
|
||||
|
@ -40,44 +40,6 @@ class TestServer
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
server.setIdleTimeout(0);
|
||||
// server.setIdleTimeout(0);
|
||||
server.bind(true);
|
||||
|
||||
|
||||
// configuration.host = "localhost";
|
||||
// configuration.serialization.register(TestObjImpl.class);
|
||||
//
|
||||
// Client client = null;
|
||||
// try {
|
||||
// client = new Client(configuration);
|
||||
// } catch (InitializationException e) {
|
||||
// e.printStackTrace();
|
||||
// } catch (SecurityException e) {
|
||||
// e.printStackTrace();
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// client.setIdleTimeout(0);
|
||||
//
|
||||
// client.listeners()
|
||||
// .add(new dorkbox.network.connection.Listener.OnConnected<Connection>() {
|
||||
// @Override
|
||||
// public
|
||||
// void connected(final Connection connection) {
|
||||
// System.err.println("CONNECTED!");
|
||||
//
|
||||
// try {
|
||||
// TestCow object = connection.createProxyObject(TestCow.class);
|
||||
// object.test();
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// try {
|
||||
// client.connect(5000);
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user