public class RTPConnectorUDPOutputStream extends RTPConnectorOutputStream
PACKET_QUEUE_CAPACITY, POOL_CAPACITY, targets
Constructor and Description |
---|
RTPConnectorUDPOutputStream(java.net.DatagramSocket socket)
Initializes a new RTPConnectorUDPOutputStream.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doLogPacket(RawPacket packet,
java.net.InetSocketAddress target)
Log the packet.
|
protected boolean |
isSocketValid()
Returns whether or not this RTPConnectorOutputStream has a valid
socket.
|
protected void |
sendToTarget(RawPacket packet,
java.net.InetSocketAddress target)
Sends a specific RawPacket through this
OutputDataStream to a specific InetSocketAddress.
|
addTarget, close, getNumberOfBytesSent, getOutputBitrate, getOutputBitrate, getPacketLoggingService, logDroppedPacket, logPacket, packetize, removeTarget, removeTargets, setEnabled, setMaxPacketsPerMillis, setPriority, syncWrite, write, write
public RTPConnectorUDPOutputStream(java.net.DatagramSocket socket)
socket
- a DatagramSocketprotected void sendToTarget(RawPacket packet, java.net.InetSocketAddress target) throws java.io.IOException
sendToTarget
in class RTPConnectorOutputStream
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 OutputDataStreamjava.io.IOException
- if anything goes wrong while sending the specified
packet through this OutputDataStream to the specified
targetprotected void doLogPacket(RawPacket packet, java.net.InetSocketAddress target)
doLogPacket
in class RTPConnectorOutputStream
packet
- packet to logtarget
- the remote address associated with the packetprotected boolean isSocketValid()
isSocketValid
in class RTPConnectorOutputStream
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.