Moved ConnectionWindow into the transport module and implemented

window sliding (untested).
This commit is contained in:
akwizgran
2011-08-11 13:22:23 +01:00
parent d5d03192e3
commit e0b86f1232
11 changed files with 106 additions and 56 deletions

View File

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

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

View File

@@ -0,0 +1,6 @@
package net.sf.briar.api.transport;
public interface ConnectionWindowFactory {
ConnectionWindow createConnectionWindow(long centre, int bitmap);
}