public class RtcpChannel extends MultiplexedChannel implements DtlsListener, IceEventListener
dataChannel, handlers, selectionKey
Constructor and Description |
---|
RtcpChannel(int channelId,
RtpStatistics statistics,
UdpManager udpManager) |
Modifier and Type | Method and Description |
---|---|
void |
bind(boolean isLocal,
int port)
Binds the channel to an address and port
|
void |
bind(DatagramChannel channel)
Deprecated.
|
void |
close() |
void |
disableIce() |
void |
disableSRTCP() |
void |
enableIce(IceAuthenticator authenticator) |
void |
enableSRTCP() |
void |
enableSRTCP(String hashFunction,
String remotePeerFingerprint) |
Text |
getDtlsLocalFingerprint() |
boolean |
isAvailable() |
boolean |
isBound() |
boolean |
isSecure()
Checks whether the channel is secure or not.
|
void |
onDtlsHandshakeComplete() |
void |
onDtlsHandshakeFailed(Throwable e) |
void |
onSelectedCandidates(SelectedCandidatesEvent event) |
void |
reset() |
void |
setRemoteFingerprint(String hashFunction,
String fingerprint) |
void |
setRemotePeer(SocketAddress remotePeer) |
void |
setRtpListener(RtpListener rtpListener) |
bind, connect, disconnect, flush, getLocalAddress, getLocalHost, getLocalPort, getRemoteHost, getRemotePort, hasPendingData, isConnected, isOpen, open, open, queueData, receive, send, setTransport
public RtcpChannel(int channelId, RtpStatistics statistics, UdpManager udpManager)
public void setRemotePeer(SocketAddress remotePeer)
public void setRtpListener(RtpListener rtpListener)
public boolean isAvailable()
public boolean isBound()
public void bind(boolean isLocal, int port) throws IOException
isLocal
- whether the connection is local or notport
- The RTCP port. Usually the RTP channel gets the even port and
RTCP channel get the next port.IOException
- When the channel cannot be openend or bound@Deprecated public void bind(DatagramChannel channel) throws SocketException
SocketException
public boolean isSecure()
public void enableIce(IceAuthenticator authenticator)
public void disableIce()
public void enableSRTCP()
public void disableSRTCP()
public Text getDtlsLocalFingerprint()
public void close()
close
in interface Channel
close
in class MultiplexedChannel
public void reset()
public void onDtlsHandshakeComplete()
onDtlsHandshakeComplete
in interface DtlsListener
public void onDtlsHandshakeFailed(Throwable e)
onDtlsHandshakeFailed
in interface DtlsListener
public void onSelectedCandidates(SelectedCandidatesEvent event)
onSelectedCandidates
in interface IceEventListener
Copyright © 2016 TeleStax, Inc.. All Rights Reserved.