Try all transports in order of preference.

This commit is contained in:
akwizgran
2020-10-29 11:48:10 +00:00
parent 0caa522f07
commit e0f381a973
8 changed files with 37 additions and 40 deletions

View File

@@ -41,12 +41,10 @@ public interface DuplexPlugin extends Plugin {
/**
* Attempts to connect to the remote peer specified in the given descriptor.
* Returns null if no connection can be established.
*
* @param alice True if the local party is Alice
*/
@Nullable
DuplexTransportConnection createKeyAgreementConnection(
byte[] remoteCommitment, BdfList descriptor, boolean alice);
byte[] remoteCommitment, BdfList descriptor);
/**
* Returns true if the plugin supports rendezvous connections.