public class DatagramTransportImpl extends Object implements org.bouncycastle.tls.DatagramTransport
DatagramTransport in order to integrate the Bouncy Castle
Crypto APIs in libjitsi for the purposes of implementing DTLS-SRTP.| Constructor and Description |
|---|
DatagramTransportImpl(int componentID)
Initializes a new DatagramTransportImpl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getReceiveLimit() |
int |
getSendLimit() |
int |
receive(byte[] buf,
int off,
int len,
int waitMillis) |
void |
send(byte[] buf,
int off,
int len) |
public DatagramTransportImpl(int componentID)
componentID - DtlsTransformEngine.COMPONENT_RTP if the new
instance is to work on data/RTP packets or DtlsTransformEngine.COMPONENT_RTCP if the new
instance is to work on control/RTCP packetspublic void close()
close in interface org.bouncycastle.tls.TlsCloseablepublic int getReceiveLimit()
getReceiveLimit in interface org.bouncycastle.tls.DatagramReceiverpublic int getSendLimit()
getSendLimit in interface org.bouncycastle.tls.DatagramSenderpublic int receive(byte[] buf,
int off,
int len,
int waitMillis)
throws IOException
receive in interface org.bouncycastle.tls.DatagramReceiverIOExceptionpublic void send(byte[] buf,
int off,
int len)
throws IOException
send in interface org.bouncycastle.tls.DatagramSenderIOExceptionCopyright © 2021 jitsi.org. All rights reserved.