mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
27 lines
690 B
Java
27 lines
690 B
Java
package org.briarproject.api.sync;
|
|
|
|
import java.io.IOException;
|
|
|
|
public interface PacketReader {
|
|
|
|
boolean eof() throws IOException;
|
|
|
|
boolean hasAck() throws IOException;
|
|
Ack readAck() throws IOException;
|
|
|
|
boolean hasMessage() throws IOException;
|
|
Message readMessage() throws IOException;
|
|
|
|
boolean hasOffer() throws IOException;
|
|
Offer readOffer() throws IOException;
|
|
|
|
boolean hasRequest() throws IOException;
|
|
Request readRequest() throws IOException;
|
|
|
|
boolean hasSubscriptionAck() throws IOException;
|
|
SubscriptionAck readSubscriptionAck() throws IOException;
|
|
|
|
boolean hasSubscriptionUpdate() throws IOException;
|
|
SubscriptionUpdate readSubscriptionUpdate() throws IOException;
|
|
}
|