docs.unity3d.com
    Show / Hide Table of Contents

    Class HTTPService

    Inheritance
    Object
    HTTPService
    Namespace: Mechatronics.SensorSDK
    Syntax
    public class HTTPService

    Properties

    Running

    Declaration
    public bool Running { get; }
    Property Value
    Type Description
    Boolean

    Methods

    AddListener(String, HTTPService.Listener)

    Register a uri to listen to.

    Declaration
    public void AddListener(string uri, HTTPService.Listener listener)
    Parameters
    Type Name Description
    String uri

    The uri the server will listen to.

    HTTPService.Listener listener

    A delegate to be called for this URI. Will be called from a seperate thread.

    Init(OusterOS0Controller, String, Int32)

    Initialize the server.

    Declaration
    public void Init(OusterOS0Controller controller, string host, int port)
    Parameters
    Type Name Description
    OusterOS0Controller controller

    Reference to the controller hosting this server.

    String host
    Int32 port

    Shutdown()

    Clean up all resources and exit.

    Declaration
    public void Shutdown()

    Start()

    Start the server to listen to all registered URIs.

    Declaration
    public void Start()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023