mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Pass incoming connection handler to plugins.
This commit is contained in:
@@ -3,6 +3,7 @@ package org.briarproject.bramble.api.plugin.duplex;
|
||||
import org.briarproject.bramble.api.data.BdfList;
|
||||
import org.briarproject.bramble.api.keyagreement.KeyAgreementListener;
|
||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
import org.briarproject.bramble.api.plugin.ConnectionHandler;
|
||||
import org.briarproject.bramble.api.plugin.Plugin;
|
||||
import org.briarproject.bramble.api.properties.TransportProperties;
|
||||
import org.briarproject.bramble.api.rendezvous.KeyMaterialSource;
|
||||
@@ -50,7 +51,9 @@ public interface DuplexPlugin extends Plugin {
|
||||
|
||||
/**
|
||||
* Creates and returns a handler that uses the given key material to
|
||||
* rendezvous with a pending contact.
|
||||
* rendezvous with a pending contact and the given connection handler to
|
||||
* handle incoming connections.
|
||||
*/
|
||||
RendezvousHandler createRendezvousHandler(KeyMaterialSource k);
|
||||
RendezvousHandler createRendezvousHandler(KeyMaterialSource k,
|
||||
ConnectionHandler incoming);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user