Ditto 5.0.0
Loading...
Searching...
No Matches
DittoSDK.Transport.DittoConnection Struct Reference

Represents a connection between two peers in a Ditto mesh network. More...

Public Member Functions

 DittoConnection (string id, DittoConnectionType connectionType, string peerKey1, string peerKey2)
 Initializes a new instance of the DittoConnection struct.
bool Equals (DittoConnection other)

Properties

string Id [get, set]
 Unique identifier for the connection.
string PeerKey1 [get, set]
 The peer key of the peer at one end of the connection, as a string.
string PeerKey2 [get, set]
 The peer key of the peer at the other end of the connection, as a string.
DittoConnectionType ConnectionType [get, set]
 Shows connection type.

Detailed Description

Represents a connection between two peers in a Ditto mesh network.

Constructor & Destructor Documentation

◆ DittoConnection()

DittoSDK.Transport.DittoConnection.DittoConnection ( string id,
DittoConnectionType connectionType,
string peerKey1,
string peerKey2 )
inline

Initializes a new instance of the DittoConnection struct.

Parameters
idConnection id
connectionTypeConnection Type
peerKey1First peer key string
peerKey2Second peer key string

Property Documentation

◆ Id

string DittoSDK.Transport.DittoConnection.Id
getset

Unique identifier for the connection.

This ID is deterministic for any two peers and a given connection type.

◆ PeerKey1

string DittoSDK.Transport.DittoConnection.PeerKey1
getset

The peer key of the peer at one end of the connection, as a string.

The assignment to PeerKey1 and PeerKey2 is deterministic and stable for any two peers.

◆ PeerKey2

string DittoSDK.Transport.DittoConnection.PeerKey2
getset

The peer key of the peer at the other end of the connection, as a string.

The assignment to PeerKey1 and PeerKey2 is deterministic and stable for any two peers.