|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.media.RTPConnectorOutputStream
public class RTPConnectorOutputStream
| Field Summary | |
|---|---|
protected List<InetSocketAddress> |
targets
Stream targets' ip addresses and ports. |
| Constructor Summary | |
|---|---|
RTPConnectorOutputStream(DatagramSocket socket)
Initializes a new RTPConnectorOutputStream which is to send packet data out through a specific UDP socket. |
|
| Method Summary | |
|---|---|
void |
addTarget(InetAddress remoteAddr,
int remotePort)
Add a target to stream targets list |
protected RawPacket |
createRawPacket(byte[] buffer,
int offset,
int length)
Creates a new RawPacket from a specific byte[] buffer in order to have this instance send its packet data through its write(byte[], int, int) method. |
boolean |
removeTarget(InetAddress remoteAddr,
int remotePort)
Remove a target from stream targets list |
void |
removeTargets()
Remove all stream targets from this session. |
int |
write(byte[] buffer,
int offset,
int length)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final List<InetSocketAddress> targets
| Constructor Detail |
|---|
public RTPConnectorOutputStream(DatagramSocket socket)
socket - the UDP socket used to send packet data out| Method Detail |
|---|
public void addTarget(InetAddress remoteAddr,
int remotePort)
remoteAddr - target ip addressremotePort - target port
protected RawPacket createRawPacket(byte[] buffer,
int offset,
int length)
write(byte[], int, int) method. Allows extenders to intercept
the packet data and possibly filter and/or modify it.
buffer - the packet data to be sent to the targets of this instanceoffset - the offset of the packet data in bufferlength - the length of the packet data in buffer
write(byte[], int, int) method
public boolean removeTarget(InetAddress remoteAddr,
int remotePort)
remoteAddr - target ip addressremotePort - target port
public void removeTargets()
public int write(byte[] buffer,
int offset,
int length)
write in interface javax.media.rtp.OutputDataStream
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||