Class 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()