Package org.bouncycastle.tls
Class DTLSTransport
java.lang.Object
org.bouncycastle.tls.DTLSTransport
- All Implemented Interfaces:
DatagramReceiver
,DatagramSender
,DatagramTransport
,TlsCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
int
int
receive
(byte[] buf, int off, int len, int waitMillis) int
receive
(byte[] buf, int off, int len, int waitMillis, DTLSRecordCallback recordCallback) int
receivePending
(byte[] buf, int off, int len) int
receivePending
(byte[] buf, int off, int len, DTLSRecordCallback recordCallback) void
send
(byte[] buf, int off, int len)
-
Method Details
-
getReceiveLimit
- Specified by:
getReceiveLimit
in interfaceDatagramReceiver
- Throws:
IOException
-
getSendLimit
- Specified by:
getSendLimit
in interfaceDatagramSender
- Throws:
IOException
-
receive
- Specified by:
receive
in 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:
send
in interfaceDatagramSender
- Throws:
IOException
-
close
- Specified by:
close
in interfaceTlsCloseable
- Throws:
IOException
-