mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Connection readers and writers don't need the connection context.
This commit is contained in:
@@ -6,15 +6,15 @@ public interface ConnectionReaderFactory {
|
||||
|
||||
/**
|
||||
* Creates a connection reader for a batch-mode connection or the
|
||||
* initiator's side of a stream-mode connection.
|
||||
* initiator's side of a stream-mode connection. The secret is erased
|
||||
* before this method returns.
|
||||
*/
|
||||
ConnectionReader createConnectionReader(InputStream in,
|
||||
ConnectionContext ctx, byte[] tag);
|
||||
ConnectionReader createConnectionReader(InputStream in, byte[] secret,
|
||||
byte[] tag);
|
||||
|
||||
/**
|
||||
* Creates a connection reader for the responder's side of a stream-mode
|
||||
* connection.
|
||||
* connection. The secret is erased before this method returns.
|
||||
*/
|
||||
ConnectionReader createConnectionReader(InputStream in,
|
||||
ConnectionContext ctx);
|
||||
ConnectionReader createConnectionReader(InputStream in, byte[] secret);
|
||||
}
|
||||
|
||||
@@ -6,15 +6,16 @@ public interface ConnectionWriterFactory {
|
||||
|
||||
/**
|
||||
* Creates a connection writer for a batch-mode connection or the
|
||||
* initiator's side of a stream-mode connection.
|
||||
* initiator's side of a stream-mode connection. The secret is erased
|
||||
* before this method returns.
|
||||
*/
|
||||
ConnectionWriter createConnectionWriter(OutputStream out, long capacity,
|
||||
ConnectionContext ctx);
|
||||
byte[] secret);
|
||||
|
||||
/**
|
||||
* Creates a connection writer for the responder's side of a stream-mode
|
||||
* connection.
|
||||
* connection. The secret is erased before this method returns.
|
||||
*/
|
||||
ConnectionWriter createConnectionWriter(OutputStream out, long capacity,
|
||||
ConnectionContext ctx, byte[] tag);
|
||||
byte[] secret, byte[] tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user