mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 04:18:53 +01:00
Moved ConnectionWindow into the transport module and implemented
window sliding (untested).
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
package net.sf.briar.api.db;
|
||||
|
||||
public interface ConnectionWindow {
|
||||
|
||||
long getCentre();
|
||||
|
||||
void setCentre(long centre);
|
||||
|
||||
int getBitmap();
|
||||
|
||||
void setBitmap(int bitmap);
|
||||
}
|
||||
12
api/net/sf/briar/api/transport/ConnectionWindow.java
Normal file
12
api/net/sf/briar/api/transport/ConnectionWindow.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package net.sf.briar.api.transport;
|
||||
|
||||
public interface ConnectionWindow {
|
||||
|
||||
long getCentre();
|
||||
|
||||
int getBitmap();
|
||||
|
||||
boolean isSeen(long connectionNumber);
|
||||
|
||||
void setSeen(long connectionNumber);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package net.sf.briar.api.transport;
|
||||
|
||||
public interface ConnectionWindowFactory {
|
||||
|
||||
ConnectionWindow createConnectionWindow(long centre, int bitmap);
|
||||
}
|
||||
Reference in New Issue
Block a user