mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Allow the transport to specify the maximum segment length.
This commit is contained in:
@@ -8,4 +8,9 @@ public interface SegmentSink {
|
||||
|
||||
/** Writes the given segment. */
|
||||
void writeSegment(Segment s) throws IOException;
|
||||
|
||||
/**
|
||||
* Returns the maximum length in bytes of the segments this sink accepts.
|
||||
*/
|
||||
int getMaxSegmentLength();
|
||||
}
|
||||
|
||||
@@ -11,4 +11,9 @@ public interface SegmentSource {
|
||||
* segment was read, or false if no more segments can be read.
|
||||
*/
|
||||
boolean readSegment(Segment s) throws IOException;
|
||||
|
||||
/**
|
||||
* Returns the maximum length in bytes of the segments this source returns.
|
||||
*/
|
||||
int getMaxSegmentLength();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user