Show / Hide Table of Contents

    Class MessageEvent

    Inheritance
    Object
    MessageEvent
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class MessageEvent

    Fields

    Message

    The message, as bytes.

    Declaration
    public byte[] Message
    Field Value
    Type Description
    Byte[]

    SourceHost

    The host that this message came from. In some unusual situations, such as when crossing network boundaries using NAT, this value may not be reliable. An example is when one client is on corpnet wireless and the other is on corpnet wired. In these situations, it may be better to either use TCP (where you might not care who exactly a message is from, since a TCP Listener can send to all automatically), or to send your own IP (using GetLocalIPAddress) as a message and have the Lister create a new Sender to reply using that value.

    Declaration
    public string SourceHost
    Field Value
    Type Description
    String

    SourceId

    The ID of the client who sent the message

    Declaration
    public int SourceId
    Field Value
    Type Description
    Int32

    Methods

    GetMessageString()

    The message, as a string.

    Declaration
    public string GetMessageString()
    Returns
    Type Description
    String
    In This Article
    • Fields
      • Message
      • SourceHost
      • SourceId
    • Methods
      • GetMessageString()
    Back to top Generated by DocFX