Class DatagramTransportImpl
- java.lang.Object
-
- org.jitsi.impl.neomedia.transform.dtls.DatagramTransportImpl
-
- All Implemented Interfaces:
org.bouncycastle.tls.DatagramReceiver,org.bouncycastle.tls.DatagramSender,org.bouncycastle.tls.DatagramTransport,org.bouncycastle.tls.TlsCloseable
public class DatagramTransportImpl extends Object implements org.bouncycastle.tls.DatagramTransport
ImplementsDatagramTransportin order to integrate the Bouncy Castle Crypto APIs in libjitsi for the purposes of implementing DTLS-SRTP.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description DatagramTransportImpl(int componentID)Initializes a new DatagramTransportImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetReceiveLimit()intgetSendLimit()intreceive(byte[] buf, int off, int len, int waitMillis)voidsend(byte[] buf, int off, int len)
-
-
-
Constructor Detail
-
DatagramTransportImpl
public DatagramTransportImpl(int componentID)
Initializes a new DatagramTransportImpl.- Parameters:
componentID-DtlsTransformEngine.COMPONENT_RTPif the new instance is to work on data/RTP packets orDtlsTransformEngine.COMPONENT_RTCPif the new instance is to work on control/RTCP packets
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceorg.bouncycastle.tls.TlsCloseable
-
getReceiveLimit
public int getReceiveLimit()
- Specified by:
getReceiveLimitin interfaceorg.bouncycastle.tls.DatagramReceiver
-
getSendLimit
public int getSendLimit()
- Specified by:
getSendLimitin interfaceorg.bouncycastle.tls.DatagramSender
-
receive
public int receive(byte[] buf, int off, int len, int waitMillis) throws IOException- Specified by:
receivein interfaceorg.bouncycastle.tls.DatagramReceiver- Throws:
IOException
-
send
public void send(byte[] buf, int off, int len) throws IOException- Specified by:
sendin interfaceorg.bouncycastle.tls.DatagramSender- Throws:
IOException
-
-