mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Moved message verification and DB writes off the IO thread.
This commit is contained in:
@@ -10,7 +10,7 @@ public interface ProtocolReader {
|
||||
Ack readAck() throws IOException;
|
||||
|
||||
boolean hasBatch() throws IOException;
|
||||
Batch readBatch() throws IOException;
|
||||
UnverifiedBatch readBatch() throws IOException;
|
||||
|
||||
boolean hasOffer() throws IOException;
|
||||
Offer readOffer() throws IOException;
|
||||
|
||||
8
api/net/sf/briar/api/protocol/UnverifiedBatch.java
Normal file
8
api/net/sf/briar/api/protocol/UnverifiedBatch.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package net.sf.briar.api.protocol;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
public interface UnverifiedBatch {
|
||||
|
||||
Batch verify() throws GeneralSecurityException;
|
||||
}
|
||||
Reference in New Issue
Block a user