T - the very type of the StreamConnector wrapped by
StreamConnectorDelegatepublic class StreamConnectorDelegate<T extends StreamConnector> extends Object implements StreamConnector
StreamConnector which wraps a specific
StreamConnector instance.StreamConnector.Protocol| Modifier and Type | Field and Description |
|---|---|
protected T |
streamConnector
The StreamConnector wrapped by this instance.
|
| Constructor and Description |
|---|
StreamConnectorDelegate(T streamConnector)
Initializes a new StreamConnectorDelegate which is to wrap a
specific 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.
|
DatagramSocket |
getControlSocket()
Returns a reference to the DatagramSocket that a stream should
use for control data (e.g.
|
Socket |
getControlTCPSocket()
Returns a reference to the Socket that a stream should
use for control data (e.g.
|
DatagramSocket |
getDataSocket()
Returns a reference to the DatagramSocket that a stream should
use for data (e.g.
|
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.
|
protected final T extends StreamConnector streamConnector
public StreamConnectorDelegate(T streamConnector)
streamConnector - the StreamConnector to be wrapped by the
new instancepublic void close()
StreamConnector.close() on the StreamConnector wrapped
by this instance.close in interface StreamConnectorpublic DatagramSocket getControlSocket()
getControlSocket in interface StreamConnectorpublic Socket getControlTCPSocket()
getControlTCPSocket in interface StreamConnectorpublic DatagramSocket getDataSocket()
getDataSocket in interface StreamConnectorpublic Socket getDataTCPSocket()
getDataTCPSocket in interface StreamConnectorpublic StreamConnector.Protocol getProtocol()
getProtocol in interface StreamConnectorpublic void started()
started in interface StreamConnectorpublic void stopped()
stopped in interface StreamConnectorpublic boolean isRtcpmux()
isRtcpmux in interface StreamConnectorCopyright © 2021 jitsi.org. All rights reserved.