public class DtlsPacketTransformer extends Object implements PacketTransformer, PropertyChangeListener
PacketTransformer for DTLS-SRTP. It's capable of working
in pure DTLS mode if appropriate flag was set in DtlsControlImpl.| Constructor and Description |
|---|
DtlsPacketTransformer(DtlsTransformEngine transformEngine,
int componentID)
Initializes a new DtlsPacketTransformer instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this PacketTransformer i.e.
|
static boolean |
isDtlsRecord(byte[] buf,
int off,
int len)
Determines whether a specific array of bytes appears to contain
a DTLS record.
|
void |
propertyChange(PropertyChangeEvent ev) |
RawPacket[] |
reverseTransform(RawPacket[] pkts)
Reverse-transforms each packet in an array of packets.
|
void |
sendApplicationData(byte[] buf,
int off,
int len)
Sends the data contained in a specific byte array as application data
through the DTLS connection of this DtlsPacketTransformer.
|
RawPacket[] |
transform(RawPacket[] pkts)
Transforms each packet in an array of packets.
|
public DtlsPacketTransformer(DtlsTransformEngine transformEngine, int componentID)
transformEngine - the TransformEngine which is initializing
the new instancecomponentID - the ID of the component for which the new instance is
to workpublic static boolean isDtlsRecord(byte[] buf,
int off,
int len)
buf - the array of bytes to be analyzedoff - the offset within buf at which the analysis is to
startlen - the number of bytes within buf starting at
off to be analyzedpublic void close()
close in interface PacketTransformerpublic void propertyChange(PropertyChangeEvent ev)
propertyChange in interface PropertyChangeListenerpublic RawPacket[] reverseTransform(RawPacket[] pkts)
reverseTransform in interface PacketTransformerpkts - the transformed packets to be restored.public void sendApplicationData(byte[] buf,
int off,
int len)
buf - the byte array containing data to send.off - the offset in buf where the data begins.len - the length of data to send.public RawPacket[] transform(RawPacket[] pkts)
transform in interface PacketTransformerpkts - the packets to be transformedCopyright © 2021 jitsi.org. All rights reserved.