Search in sources :

Example 1 with AFrostyObjectConnectionListener

use of inputport.datacomm.duplex.object.echoer.example.AFrostyObjectConnectionListener in project GIPC by pdewan.

the class AJoinerConnectingSessionObserver method processSessionMember.

void processSessionMember(ServerPortDescription aServerPortDescription) {
    if (!myName.equals(aServerPortDescription.getName())) {
        DuplexClientInputPort clientInputPort = DuplexObjectInputPortSelector.createDuplexClientInputPort(aServerPortDescription.getHost(), aServerPortDescription.getID(), aServerPortDescription.getName(), myName);
        clientInputPort.addConnectionListener(new AFrostyObjectConnectionListener(clientInputPort));
        clientInputPort.addReceiveListener(new AnEchoingObjectReceiveListener());
        clientInputPorts.add(clientInputPort);
        clientInputPort.connect();
    // clientInputPort.send("Words of Robert Forst Please");
    // nameToPort.put(aServerPortDescription.getName(), clientInputPort);
    }
}
Also used : AFrostyObjectConnectionListener(inputport.datacomm.duplex.object.echoer.example.AFrostyObjectConnectionListener) AnEchoingObjectReceiveListener(port.delay.example.AnEchoingObjectReceiveListener) DuplexClientInputPort(inputport.datacomm.duplex.DuplexClientInputPort)

Aggregations

DuplexClientInputPort (inputport.datacomm.duplex.DuplexClientInputPort)1 AFrostyObjectConnectionListener (inputport.datacomm.duplex.object.echoer.example.AFrostyObjectConnectionListener)1 AnEchoingObjectReceiveListener (port.delay.example.AnEchoingObjectReceiveListener)1