Files
briar/briar-api/src/org/briarproject/api/sync/PacketReader.java
2016-01-27 12:51:54 +00:00

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