Click or drag to resize

NetId Structure

[This is preliminary documentation and is subject to change.]

Represents a ClientId structure

Namespace:  MLAPI.Data
Assembly:  MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public struct NetId
Request Example View Source

The NetId type exposes the following members.

Constructors
  NameDescription
Public methodNetId(UInt32)
Initializes a new instance of the netId struct from a clientId
Public methodNetId(Byte, UInt16, Boolean, Boolean)
Initializes a new instance of the netId struct from transport values
Top
Properties
  NameDescription
Public propertyStatic memberServerNetId
Static ServerNetId for comparison
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current NetId.
(Overrides ValueTypeEquals(Object).)
Public methodGetClientId
Gets the clientId.
Public methodGetHashCode
Serves as a hash function for a NetId object.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodIsHost
Returns wheter or not the clientId represents a -1
Public methodIsInvalid
Returns if this is a invalid clientId, (-2)
Public methodToString (Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether a specified instance of NetId is equal to another specified NetId.
Public operatorStatic memberInequality
Determines whether a specified instance of NetId is not equal to another specified NetId.
Top
Fields
  NameDescription
Public fieldConnectionId
The connectionId this client is assigned
Public fieldHostId
The hostId this client is on
Public fieldMeta
Meta data about hte client
Top
See Also