mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
21 lines
461 B
Java
21 lines
461 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;
|
|
}
|