Skip to content
Snippets Groups Projects
Commit 642cb976 authored by paweldomas's avatar paweldomas
Browse files

Adds method for sending data over DTLS layer to the transformer. Returns...

Adds method for sending data over DTLS layer to the transformer. Returns application data packets from transform method.
parent 6c443c0c
No related branches found
No related tags found
No related merge requests found
......@@ -597,7 +597,9 @@ else if (delta < 0)
* In DTLS-SRTP no application data is transmitted
* over the DTLS channel.
*/
pkt = null;
// FIXME: returns data packets so that they can be
// used by SCTP data channels.
//pkt = null;
}
}
catch (IOException ioe)
......@@ -951,6 +953,20 @@ private synchronized void stop()
}
}
/**
* FIXME: no interface used
* Sends application packet over DTLS layer.
* @param packet the buffer that contains packet with application data.
* @param offset offset in the buffer pointing to the beginning of the data.
* @param length length of the data to be sent.
* @throws IOException in case of DTLS transport layer failure.
*/
public void sendOverDtls(byte[] packet, int offset, int length)
throws IOException
{
dtlsTransport.send(packet, offset, length);
}
/**
* {@inheritDoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment