mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
17 lines
390 B
Java
17 lines
390 B
Java
package net.sf.briar.transport;
|
|
|
|
import java.io.IOException;
|
|
|
|
interface FrameWriter {
|
|
|
|
/** Writes the given frame. */
|
|
void writeFrame(byte[] frame, int payloadLength, int paddingLength,
|
|
boolean lastFrame) throws IOException;
|
|
|
|
/** Flushes the stack. */
|
|
void flush() throws IOException;
|
|
|
|
/** Returns the maximum number of bytes that can be written. */
|
|
long getRemainingCapacity();
|
|
}
|