net.java.sip.communicator.impl.neomedia
Class RTPConnectorTCPOutputStream
java.lang.Object
net.java.sip.communicator.impl.neomedia.RTPConnectorOutputStream
net.java.sip.communicator.impl.neomedia.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RTPConnectorTCPOutputStream
public RTPConnectorTCPOutputStream(Socket socket)
- Initializes a new RTPConnectorTCPOutputStream.
- Parameters:
socket - a Socket
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 targettarget - 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
doLogPacket
protected void doLogPacket(RawPacket packet,
InetSocketAddress target)
- Log the packet.
- Specified by:
doLogPacket in class RTPConnectorOutputStream
- Parameters:
packet - packet to logtarget - the remote address associated with the packet
isSocketValid
protected boolean isSocketValid()
- Returns whether or not this RTPConnectorOutputStream has a valid
socket.
- Specified by:
isSocketValid in class RTPConnectorOutputStream
- Returns:
- true if this RTPConnectorOutputStream has a
valid socket; false, otherwise
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.