Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia
Class RTPConnectorTCPImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.AbstractRTPConnector
      extended by net.java.sip.communicator.impl.neomedia.RTPConnectorTCPImpl
All Implemented Interfaces:
javax.media.rtp.RTPConnector
Direct Known Subclasses:
RTPTransformTCPConnector

public class RTPConnectorTCPImpl
extends AbstractRTPConnector

RTPConnector implementation for UDP.

Author:
Sebastien Vincent

Field Summary
 
Fields inherited from class net.java.sip.communicator.impl.neomedia.AbstractRTPConnector
connector
 
Constructor Summary
RTPConnectorTCPImpl(StreamConnector connector)
          Initializes a new RTPConnectorTCPImpl which is to use a given pair of sockets for RTP and RTCP traffic specified in the form of a StreamConnector.
 
Method Summary
protected  RTPConnectorInputStream createControlInputStream()
          Creates the RTCP packet input stream to be used by RTPManager.
protected  RTPConnectorOutputStream createControlOutputStream()
          Creates the RTCP packet output stream to be used by RTPManager.
protected  RTPConnectorInputStream createDataInputStream()
          Creates the RTP packet input stream to be used by RTPManager.
protected  RTPConnectorOutputStream createDataOutputStream()
          Creates the RTP packet output stream to be used by RTPManager.
 Socket getControlSocket()
          Gets the TCP Socket this instance uses to send and receive RTCP packets.
 Socket getDataSocket()
          Gets the TCP socket this instance uses to send and receive RTP packets.
 
Methods inherited from class net.java.sip.communicator.impl.neomedia.AbstractRTPConnector
addTarget, close, getConnector, getControlInputStream, getControlInputStream, getControlOutputStream, getControlOutputStream, getDataInputStream, getDataInputStream, getDataOutputStream, getDataOutputStream, getReceiveBufferSize, getRTCPBandwidthFraction, getRTCPSenderBandwidthFraction, getSendBufferSize, removeTarget, removeTargets, setReceiveBufferSize, setSendBufferSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTPConnectorTCPImpl

public RTPConnectorTCPImpl(StreamConnector connector)
Initializes a new RTPConnectorTCPImpl which is to use a given pair of sockets for RTP and RTCP traffic specified in the form of a StreamConnector.

Parameters:
connector - the pair of sockets for RTP and RTCP traffic the new instance is to use
Method Detail

getDataSocket

public Socket getDataSocket()
Gets the TCP socket this instance uses to send and receive RTP packets.

Returns:
the TCP socket this instance uses to send and receive RTP packets

getControlSocket

public Socket getControlSocket()
Gets the TCP Socket this instance uses to send and receive RTCP packets.

Returns:
the TCP Socket this instance uses to send and receive RTCP packets

createControlInputStream

protected RTPConnectorInputStream createControlInputStream()
                                                    throws IOException
Creates the RTCP packet input stream to be used by RTPManager.

Specified by:
createControlInputStream in class AbstractRTPConnector
Returns:
a new RTCP packet input stream to be used by RTPManager
Throws:
IOException - if an error occurs during the creation of the RTCP packet input stream

createControlOutputStream

protected RTPConnectorOutputStream createControlOutputStream()
                                                      throws IOException
Creates the RTCP packet output stream to be used by RTPManager.

Specified by:
createControlOutputStream in class AbstractRTPConnector
Returns:
a new RTCP packet output stream to be used by RTPManager
Throws:
IOException - if an error occurs during the creation of the RTCP packet output stream

createDataInputStream

protected RTPConnectorInputStream createDataInputStream()
                                                 throws IOException
Creates the RTP packet input stream to be used by RTPManager.

Specified by:
createDataInputStream in class AbstractRTPConnector
Returns:
a new RTP packet input stream to be used by RTPManager
Throws:
IOException - if an error occurs during the creation of the RTP packet input stream

createDataOutputStream

protected RTPConnectorOutputStream createDataOutputStream()
                                                   throws IOException
Creates the RTP packet output stream to be used by RTPManager.

Specified by:
createDataOutputStream in class AbstractRTPConnector
Returns:
a new RTP packet output stream to be used by RTPManager
Throws:
IOException - if an error occurs during the creation of the RTP packet output stream

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.