Files
briar/components/net/sf/briar/transport/FrameWriter.java
2012-08-28 09:15:04 +01:00

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();
}