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) A waitMillis of zero is interpreted as an infinite timeout.intreceive(byte[] buf, int off, int len, int waitMillis, DTLSRecordCallback recordCallback) A waitMillis of zero is interpreted as an infinite timeout.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
Description copied from interface:DatagramReceiverA waitMillis of zero is interpreted as an infinite timeout.- Specified by:
receivein interfaceDatagramReceiver- Throws:
IOException
-
receive
public int receive(byte[] buf, int off, int len, int waitMillis, DTLSRecordCallback recordCallback) throws IOException A waitMillis of zero is interpreted as an infinite timeout.- 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
-