Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class RTPConnectorUDPImpl
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
RTPConnectorUDPImpl(StreamConnector connector)
          Initializes a new RTPConnectorUDPImpl which is to use a given pair of datagram 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.
 DatagramSocket getControlSocket()
          Gets the UDP Socket this instance uses to send and receive RTCP packets.
 DatagramSocket getDataSocket()
          Gets the UDP 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

RTPConnectorUDPImpl

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

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

getDataSocket

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

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

getControlSocket

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

Returns:
the UDP 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.