public interface StreamConnector
The reason why this media service makes sockets visible through this StreamConnector is so that they could be shared among media and other libraries that may need to use them like an ICE implementation for example.
Modifier and Type | Interface and Description |
---|---|
static class |
StreamConnector.Protocol
Enumerates the protocols supported by StreamConnector.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the resources allocated by this instance in the course of its
execution and prepares it to be garbage collected.
|
java.net.DatagramSocket |
getControlSocket()
Returns a reference to the DatagramSocket that a stream should
use for control data (e.g.
|
java.net.Socket |
getControlTCPSocket()
Returns a reference to the Socket that a stream should
use for control data (e.g.
|
java.net.DatagramSocket |
getDataSocket()
Returns a reference to the DatagramSocket that a stream should
use for data (e.g.
|
java.net.Socket |
getDataTCPSocket()
Returns a reference to the Socket that a stream should
use for data (e.g.
|
StreamConnector.Protocol |
getProtocol()
Returns the protocol of this StreamConnector.
|
boolean |
isRtcpmux()
Returns true if this StreamConnector uses rtcp-mux,
that is, if its data and control sockets share the same local address
and port.
|
void |
started()
Notifies this instance that utilization of its DatagramSockets
for data and/or control traffic has started.
|
void |
stopped()
Notifies this instance that utilization of its DatagramSockets
for data and/or control traffic has temporarily stopped.
|
java.net.DatagramSocket getDataSocket()
java.net.DatagramSocket getControlSocket()
java.net.Socket getDataTCPSocket()
java.net.Socket getControlTCPSocket()
StreamConnector.Protocol getProtocol()
void close()
void started()
void stopped()
boolean isRtcpmux()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.