Class RTPConnectorTCPOutputStream

  • All Implemented Interfaces:
    javax.media.rtp.OutputDataStream
    Direct Known Subclasses:
    TransformTCPOutputStream

    public class RTPConnectorTCPOutputStream
    extends RTPConnectorOutputStream
    RTPConnectorOutputStream implementation for TCP protocol.
    Author:
    Sebastien Vincent
    • Constructor Detail

      • RTPConnectorTCPOutputStream

        public RTPConnectorTCPOutputStream​(Socket socket)
        Initializes a new RTPConnectorTCPOutputStream.
        Parameters:
        socket - a Socket
    • Method Detail

      • sendToTarget

        protected void sendToTarget​(RawPacket packet,
                                    InetSocketAddress target)
                             throws IOException
        Sends a specific RawPacket through this OutputDataStream to a specific InetSocketAddress.
        Specified by:
        sendToTarget in class RTPConnectorOutputStream
        Parameters:
        packet - the RawPacket to send through this OutputDataStream to the specified target
        target - the InetSocketAddress to which the specified packet is to be sent through this OutputDataStream
        Throws:
        IOException - if anything goes wrong while sending the specified packet through this OutputDataStream to the specified target
      • isSocketValid

        protected boolean isSocketValid()
        Returns whether or not this RTPConnectorOutputStream has a valid socket.
        Specified by:
        isSocketValid in class RTPConnectorOutputStream
        Returns:
        trueif this RTPConnectorOutputStream has a valid socket, and false otherwise.