Package org.jitsi.impl.neomedia
Class RTPConnectorTCPImpl
- java.lang.Object
-
- org.jitsi.impl.neomedia.AbstractRTPConnector
-
- org.jitsi.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 org.jitsi.impl.neomedia.AbstractRTPConnector
connector
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RTPConnectorInputStream<?>createControlInputStream()Creates the RTCP packet input stream to be used by RTPManager.protected RTPConnectorOutputStreamcreateControlOutputStream()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 RTPConnectorOutputStreamcreateDataOutputStream()Creates the RTP packet output stream to be used by RTPManager.SocketgetControlSocket()Gets the TCP Socket this instance uses to send and receive RTCP packets.SocketgetDataSocket()Gets the TCP socket this instance uses to send and receive RTP packets.-
Methods inherited from class org.jitsi.impl.neomedia.AbstractRTPConnector
addTarget, close, getConnector, getControlInputStream, getControlInputStream, getControlOutputStream, getControlOutputStream, getDataInputStream, getDataInputStream, getDataOutputStream, getDataOutputStream, getReceiveBufferSize, getRTCPBandwidthFraction, getRTCPSenderBandwidthFraction, getSendBufferSize, removeTarget, removeTargets, setDirection, setReceiveBufferSize, setSendBufferSize
-
-
-
-
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:
createControlInputStreamin classAbstractRTPConnector- 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:
createControlOutputStreamin classAbstractRTPConnector- 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:
createDataInputStreamin classAbstractRTPConnector- 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:
createDataOutputStreamin classAbstractRTPConnector- 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
-
-