Click or drag to resize

NetId Structure

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

Represents a ClientId structure

Namespace:  MLAPI.Transports.UNET
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)
Initializes a new instance of the netId struct from transport values
Top
Methods
  NameDescription
Public methodEquals
Checks if two NetId's are equal
(Overrides ValueTypeEquals(Object).)
Public methodGetClientId
Gets the clientId.
Public methodGetHashCode
Returns a hash code for the instance
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodIsServer
Returns wheter or not the clientId represents a -1
Public methodToString (Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Checks if two NetId's are equal
Public operatorStatic memberInequality
Checks if two NetId's are not equal
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