mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
17 lines
438 B
Java
17 lines
438 B
Java
package net.sf.briar.transport;
|
|
|
|
import java.io.IOException;
|
|
|
|
/** Encrypts authenticated data to be sent over a connection. */
|
|
interface ConnectionEncrypter {
|
|
|
|
/** Encrypts and writes the given frame. */
|
|
void writeFrame(byte[] b, int off, int len) throws IOException;
|
|
|
|
/** Flushes the output stream. */
|
|
void flush() throws IOException;
|
|
|
|
/** Returns the maximum number of bytes that can be written. */
|
|
long getRemainingCapacity();
|
|
}
|