Show / Hide Table of Contents

    Interface INetworkManager

    Inherited Members
    ICommandRegistry.Connected
    ICommandRegistry.Disconnected
    ICommandRegistry.RegisterCommandHandler(String, CommandHandler)
    ICommandRegistry.UnregisterCommandHandler(String, CommandHandler)
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public interface INetworkManager : ICommandRegistry

    Properties

    ConnectedIPAddress

    Gets the local IP address reported by the socket used to connect to the device.

    Declaration
    string ConnectedIPAddress { get; }
    Property Value
    Type Description
    String

    IsConnected

    Gets whether or not a network connection to the device is established.

    Declaration
    bool IsConnected { get; }
    Property Value
    Type Description
    Boolean

    IsConnecting

    Gets whether or not a network connection to the device is pending.

    Declaration
    bool IsConnecting { get; }
    Property Value
    Type Description
    Boolean

    TimeSinceLastUpdate

    Gets the time since this network manager last received an update.

    Declaration
    TimeSpan TimeSinceLastUpdate { get; }
    Property Value
    Type Description
    TimeSpan

    Methods

    Broadcast(Byte[])

    Send a packet of data to all connected devices.

    Declaration
    void Broadcast(byte[] data)
    Parameters
    Type Name Description
    Byte[] data

    The data to send to each connected device.

    ConnectTo(String)

    Connect to a remote device on the default port for this network manager.

    Declaration
    void ConnectTo(string targetIpString)
    Parameters
    Type Name Description
    String targetIpString

    The IP address of the device to connect to.

    ConnectTo(String, Int32)

    Connect to a remote device using the specified port.

    Declaration
    void ConnectTo(string targetIpString, int port)
    Parameters
    Type Name Description
    String targetIpString

    The IP address of the device to connect to.

    Int32 port

    The port to use for communication.

    Disconnect()

    Disconnects any active network connections to other devices.

    Declaration
    void Disconnect()

    StartListening(Int32)

    Starts a listening socket on the given port.

    Declaration
    void StartListening(int port)
    Parameters
    Type Name Description
    Int32 port

    The port to listen for new connections on.

    Back to top Generated by DocFX