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