WebRTC Network
0.96
|
Connection id idendifies one specific endpoint in a IBaseNetwork. More...
Public Member Functions | |
ConnectionId (short lId) | |
Creates a new id. Only for internal use. More... | |
override bool | Equals (object obj) |
bool | IsValid () |
Returns true if the id has a valid value. More... | |
override int | GetHashCode () |
override string | ToString () |
Static Public Member Functions | |
static bool | operator== (ConnectionId i1, ConnectionId i2) |
static bool | operator!= (ConnectionId i1, ConnectionId i2) |
static bool | operator< (ConnectionId i1, ConnectionId i2) |
static bool | operator> (ConnectionId i1, ConnectionId i2) |
static bool | operator<= (ConnectionId i1, ConnectionId i2) |
static bool | operator>= (ConnectionId i1, ConnectionId i2) |
Public Attributes | |
short | id |
Stores the id as a short. More... | |
Static Public Attributes | |
static readonly ConnectionId | INVALID = new ConnectionId() { id = -1 } |
Specific id that is used to represent an invalid id. More... | |
Connection id idendifies one specific endpoint in a IBaseNetwork.
The id is only unique locally for a specific IBaseNetwork. The same connection can have a different id on the other end point of the connection!
Byn.Net.ConnectionId.ConnectionId | ( | short | lId | ) |
Creates a new id. Only for internal use.
lId |
bool Byn.Net.ConnectionId.IsValid | ( | ) |
Returns true if the id has a valid value.
short Byn.Net.ConnectionId.id |
Stores the id as a short.
|
static |
Specific id that is used to represent an invalid id.
Value might change to 0 in the future to make sure C# initializes empty id's to invalid values.