FileDocCategorySizeDatePackage
RTPSocket.javaAPI DocJMF 2.1.1e2532Mon May 12 12:20:38 BST 2003javax.media.rtp

RTPSocket

public class RTPSocket extends RTPPushDataSource implements DataChannel
A programmer may abstract the underlying transport mechanism for RTP control and data from the RTPSM. This is done via the RTPSocket object. A RTPSocket datasource must be created and handed over to Manager. The Manager will take care of creating a player for the content type defined for this datasource. When hiding the underlying transport protocol from the RTPSessionManager, the user is responsible for streaming control and data to and from this RTPSocket. Basically, every RTPSocket is a JMF compliant datasource and is used for streaming the data channel of an RTP session to the RTPSM. Specifically, the RTPSocket is an instance of an RTPPushDataSource. It also has a control counterpart RTPPushDataSource which is accessed via methods of the DataChannel interface. Connecting, disconnecting, starting and stopping the RTPSocket will take care of calling these methods on the control RTPPushDataSource as well.The programmer will still need to set the source and destination streams for the data and control source.
deprecated
This inferface has been replaced with the RTPConnector interface.
see
RTPPushDataSource
see
DataChannel

Fields Summary
RTPPushDataSource
controlsource
Constructors Summary
public RTPSocket()


     
	controlsource = new RTPPushDataSource();
    
Methods Summary
public voidconnect()
connect yourself and the control source

	super.connect();
	controlsource.connect();
    
public voiddisconnect()
disconnect yourself and the control source

	super.disconnect();
	controlsource.disconnect();	
    
public javax.media.rtp.RTPPushDataSourcegetControlChannel()

	return controlsource;
    
public voidsetContentType(java.lang.String contentType)
Set your content type as well as content type of the control source

	 super.setContentType(contentType);
	 controlsource.setContentType(contentType);
     
public voidstart()
Start yourself and the control source

	super.start();
	controlsource.start();
    
public voidstop()
Stop yourself and the control source

	super.stop();
	controlsource.stop();