tuweni / org.apache.tuweni.rlpx / RLPxConnection / isComplementedBy

isComplementedBy

static fun isComplementedBy(one: RLPxConnection!, other: RLPxConnection!): Boolean (source)

Checks if two RLPx connections represent both ends of a connection.

Used for testing.

Parameters

one - RLPxConnection!: one RLPx connection

other - RLPxConnection!: an other RLPx connection

Return
Boolean: true if both connections refer to the same peers, on each side of the connection