O'Reilly logo

Getting Started with the Internet of Things by Cuno Pfister

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix C. Gsiot.Server Library

Here is a summary of the Gsiot.Server library interface. All items described below can be found in namespace Gsiot.Server, which is implemented in Gsiot.Server.dll.

HTTP Server

Class HttpServer

An instance of class HttpServer represents a web service that handles HTTP requests at a particular port, or uses a relay server to make the service accessible even without a public Internet address:

public class HttpServer
{
    public int Port { get; set; }
    public string RelayHost { get; set; }
    public string RelayDomain { get; set; }
    public string RelaySecretKey { get; set; }
    public RequestRouting RequestRouting { get; set; }

    public void Open();
    public void Run();
}
  • int Port

    Optional property that is set to 80 by default. If the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required