public interface RecordLayer
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ETH_MTU
Default Ethernet MTU.
|
static int |
DEFAULT_IPV4_MTU
Default IPv4 MTU.
|
static int |
DEFAULT_IPV6_MTU
Default IPv6 MTU.
|
static int |
IPV4_HEADER_LENGTH
IPv4 header size.
|
static int |
IPV6_HEADER_LENGTH
IPv6 header size.
|
static int |
MAX_MTU
Maximum MTU.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dropReceivedRecord(Record record)
Report dropped record
|
int |
getMaxDatagramSize(boolean ipv6)
Gets the maximum size of a UDP datagram that can be sent to this
session's peer without IP fragmentation.
|
boolean |
isRunning()
Returns execution state of record layer.
|
void |
processRecord(Record record,
Connection connection)
Process received record.
|
void |
sendFlight(List<DatagramPacket> datagrams)
Sends a set of UDP datagrams containing DTLS records with handshake
messages to a peer.
|
static final int MAX_MTU
static final int DEFAULT_IPV6_MTU
static final int DEFAULT_IPV4_MTU
static final int DEFAULT_ETH_MTU
static final int IPV4_HEADER_LENGTH
static final int IPV6_HEADER_LENGTH
boolean isRunning()
true if execution is running, false, otherwise.int getMaxDatagramSize(boolean ipv6)
ipv6 - true, IPv6 destination, false, IPv4
destinationvoid sendFlight(List<DatagramPacket> datagrams) throws IOException
The set is sent as a whole. In particular this means that all datagrams will be re-transmitted in case of a missing acknowledgement from the peer.
datagrams - list of UDP datagrams containing DTLS records to send.IOException - if an io error occursvoid processRecord(Record record, Connection connection)
record - received record.connection - connection to process record.void dropReceivedRecord(Record record)
record - dropped recordCopyright © 2023 Eclipse Foundation. All rights reserved.