FileDocCategorySizeDatePackage
RemoteCollisionEvent.javaAPI DocJMF 2.1.1e1149Mon May 12 12:20:40 BST 2003javax.media.rtp.event

RemoteCollisionEvent.java

/*
 * @(#)RemoteCollisionEvent.java	1.6 02/08/21
 *
 * Copyright (c) 1996-2002 Sun Microsystems, Inc.  All rights reserved.
 */

package javax.media.rtp.event;

import javax.media.rtp.*;

/**
 * Informs the RTP listener that two remote participants were using
 * the same  SSRC simultaneously. Since participants are obligated to detect
 * collisions, the  remote parties should eventually start sending
 * data or  control packets with new SSRCs.   Thus, this callback will
 * usually  precede two newReceiveStream() callbacks; these new
 * ReceiveStreams   will (eventually) be associated with the existing
 * Participants. The old  ReceiveStreams  associated with those
 * participants will be discarded and no longer returned by their
 * respective  getStreams() methods.
 */
public class RemoteCollisionEvent extends RemoteEvent{
    /**
     *  collidingSSRC The remote SSRC
     */
    private  long collidingSSRC;

    public RemoteCollisionEvent(SessionManager from,
				long ssrc){
	super(from);
	collidingSSRC = ssrc;
    }
    /**
     *  collidingSSRC The remote SSRC
     */
    public long getSSRC(){
	return collidingSSRC;
    }
}