use of port.sessionserver.example.APrintingSessionObserver in project GIPC by pdewan.
the class AThreeIndepPortClientLauncher method createUI.
protected void createUI(InputPort anInputPort) {
JoinInfo joinInfo = sessionServerProxy.join(sessionName, new AServerPortDescription(null, null, clientName), new APrintingSessionObserver());
processInitialSessionMembers(joinInfo);
super.createUI(anInputPort);
}
use of port.sessionserver.example.APrintingSessionObserver in project GIPC by pdewan.
the class ASessionMemberMVCServerLauncher method doPostConnectsAsyncOperations.
protected void doPostConnectsAsyncOperations() {
String myHostName = "localhost";
try {
myHostName = InetAddress.getLocalHost().getHostName();
} catch (Exception e) {
e.printStackTrace();
}
sessionServerProxy.joinAsServer(sessionName, new AServerPortDescription(myHostName, serverId, serverName), new APrintingSessionObserver());
}
Aggregations