WebRTC Network  0.96
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Byn.Net.ConnectionId Struct Reference

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...
 

Detailed Description

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!

Constructor & Destructor Documentation

Byn.Net.ConnectionId.ConnectionId ( short  lId)

Creates a new id. Only for internal use.

Parameters
lId

Member Function Documentation

bool Byn.Net.ConnectionId.IsValid ( )

Returns true if the id has a valid value.

Returns

Member Data Documentation

short Byn.Net.ConnectionId.id

Stores the id as a short.

readonly ConnectionId Byn.Net.ConnectionId.INVALID = new ConnectionId() { id = -1 }
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.


The documentation for this struct was generated from the following file: