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);
}
}
Aggregations