Nebula
Loading...
Searching...
No Matches
httpinterface.h
Go to the documentation of this file.
1#pragma once
2#ifndef HTTP_HTTPINTERFACE_H
3#define HTTP_HTTPINTERFACE_H
4//------------------------------------------------------------------------------
15#include "core/types.h"
17#include "core/refcounted.h"
18#include "core/singleton.h"
19
20//------------------------------------------------------------------------------
21namespace Http
22{
24{
27public:
31 virtual ~HttpInterface();
33 virtual void Open();
35 void SetTcpPort(ushort port);
36protected:
38};
39
40//------------------------------------------------------------------------------
43inline void
45{
46 this->tcpPort = port;
47}
48
49} // namespace HttpInterface
50//------------------------------------------------------------------------------
51#endif
52
53
The HttpInterface launches the HttpServer thread and is the communication interface with the HttpServ...
Definition httpinterface.h:24
__DeclareInterfaceSingleton(HttpInterface)
virtual void Open()
open the interface object
Definition httpinterface.cc:40
void SetTcpPort(ushort port)
set the tcp port for the http handler
Definition httpinterface.h:44
HttpInterface()
constructor
Definition httpinterface.cc:22
__DeclareClass(HttpInterface)
virtual ~HttpInterface()
destructor
Definition httpinterface.cc:31
ushort tcpPort
Definition httpinterface.h:37
Base class for interfaces.
Definition interfacebase.h:22
This file was generated with Nebula Trifid's idlc compiler tool.
Definition defaulthttprequesthandler.cc:15
unsigned short ushort
Definition types.h:32