if (recipient == null)
{
//System.out.println("Recipient has not yet been specified, returning ...");
return;
}
RtpiDataPacket packet = (RtpiDataPacket) adu.getFirst();
//System.out.println("packet is: " + packet);
int thisSendersID = packet.getParticipantID();
//System.out.println("senders ID is: " + thisSendersID);
if (thisSendersID==localParticipant.getParticipantID()) {
// System.err.println("Rtpi: WARNING: received RtpiAdu with same PID as local user, this may be cause by a PID collision or a routing loop!");
return;
}
//System.out.println("remoteParticipants: " + remoteParticipants);
//System.out.println("deletedParticipants: " + deletedParticipants);
if (!remoteParticipants.containsKey(new Integer(thisSendersID)) && !deletedParticipants.containsKey(new Integer(thisSendersID))) {
//System.out.println("In if");
RtpiSourceInfo participant = new RtpiSourceInfo(thisSendersID);
remoteParticipants.put(new Integer(thisSendersID), participant);
members++;
//System.out.println("recipient is : " + recipient);
recipient.changeSourceInfo(this, participant);
}
if (!remoteParticipants.containsKey(new Integer(thisSendersID))) {
return;
}
//System.out.println("calling heard from for pid: " + thisSendersID);
((RtpiSourceInfo) remoteParticipants.get(new Integer(thisSendersID))).heardFrom();
switch (packet.getType()) {
case RtpiDataPacket.EVENT:
try {
//System.out.println("Got event packet");
recipient.receiveEvent(this, new RtpiEvent(adu));
} catch (Exception ex) {