Search in sources :

Example 1 with APrintingSessionObserver

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);
}
Also used : JoinInfo(port.sessionserver.JoinInfo) AServerPortDescription(port.sessionserver.AServerPortDescription) APrintingSessionObserver(port.sessionserver.example.APrintingSessionObserver)

Example 2 with APrintingSessionObserver

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());
}
Also used : AServerPortDescription(port.sessionserver.AServerPortDescription) APrintingSessionObserver(port.sessionserver.example.APrintingSessionObserver)

Aggregations

AServerPortDescription (port.sessionserver.AServerPortDescription)2 APrintingSessionObserver (port.sessionserver.example.APrintingSessionObserver)2 JoinInfo (port.sessionserver.JoinInfo)1