mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 21:29:54 +01:00
17 lines
410 B
Java
17 lines
410 B
Java
package org.briarproject.api.transport;
|
|
|
|
import java.io.OutputStream;
|
|
|
|
/** Encrypts and authenticates data to be sent over a connection. */
|
|
public interface ConnectionWriter {
|
|
|
|
/**
|
|
* Returns an output stream to which unencrypted, unauthenticated data can
|
|
* be written.
|
|
*/
|
|
OutputStream getOutputStream();
|
|
|
|
/** Returns the maximum number of bytes that can be written. */
|
|
long getRemainingCapacity();
|
|
}
|