Package org.bouncycastle.tls
Class DTLSTransport
java.lang.Object
org.bouncycastle.tls.DTLSTransport
- All Implemented Interfaces:
DatagramReceiver,DatagramSender,DatagramTransport,TlsCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intintintreceive(byte[] buf, int off, int len, int waitMillis) intreceive(byte[] buf, int off, int len, int waitMillis, DTLSRecordCallback recordCallback) intreceivePending(byte[] buf, int off, int len) intreceivePending(byte[] buf, int off, int len, DTLSRecordCallback recordCallback) voidsend(byte[] buf, int off, int len)
-
Method Details
-
getReceiveLimit
- Specified by:
getReceiveLimitin interfaceDatagramReceiver- Throws:
IOException
-
getSendLimit
- Specified by:
getSendLimitin interfaceDatagramSender- Throws:
IOException
-
receive
- Specified by:
receivein interfaceDatagramReceiver- Throws:
IOException
-
receive
public int receive(byte[] buf, int off, int len, int waitMillis, DTLSRecordCallback recordCallback) throws IOException - Throws:
IOException
-
receivePending
- Throws:
IOException
-
receivePending
public int receivePending(byte[] buf, int off, int len, DTLSRecordCallback recordCallback) throws IOException - Throws:
IOException
-
send
- Specified by:
sendin interfaceDatagramSender- Throws:
IOException
-
close
- Specified by:
closein interfaceTlsCloseable- Throws:
IOException
-