set Priority For Query Overlap Group
fun setPriorityForQueryOverlapGroup(priority: DittoConnectionPriority, queryOverlapGroup: UByte, ditto: DittoBase)
Content copied to clipboard
Configure the priority with which Ditto should connect to any peers in the given Query Overlap Group. If the priority is set to high, an end-to-end encrypted multihop connection will be established wherever it is not possible to establish a direct connection.
Connections can be established in either direction, so the remote peers might attempt connections to this Ditto with different priorities unless they are similarly configured.
Note: Query Overlap Groups are not a security mechanism. A peer may change its Query Overlap Group at runtime for any reason.
Parameters
priority
The priority with which outgoing connections should be attempted.
query Overlap Group
The Query Overlap Group to which the priority should apply.
ditto
The local Ditto
instance to configure.