Nebula
Loading...
Searching...
No Matches
httpmessagehandler.h
Go to the documentation of this file.
1#pragma once
2#ifndef HTTP_HTTPMESSAGEHANDLER_H
3#define HTTP_HTTPMESSAGEHANDLER_H
4//------------------------------------------------------------------------------
16#include "messaging/message.h"
17#include "io/console.h"
18#include "http/httpserver.h"
19#include "http/httpprotocol.h"
20
21//------------------------------------------------------------------------------
22namespace Http
23{
25{
27public:
31 virtual ~HttpMessageHandler();
32
34 virtual void Open();
36 virtual void Close();
38 virtual bool HandleMessage(const Ptr<Messaging::Message>& msg);
40 virtual void DoWork();
42 void SetTcpPort(ushort port);
43
44private:
46
51
53};
54
55//------------------------------------------------------------------------------
58inline void
63
64} // namespace HttpMessageHandler
65//------------------------------------------------------------------------------
66#endif
Runs the HttpServer thread, and owns the central http server.
Definition httpmessagehandler.h:25
__DeclareClass(HttpMessageHandler)
virtual void Open()
open the handler
Definition httpmessagehandler.cc:38
virtual ~HttpMessageHandler()
destructor
Definition httpmessagehandler.cc:29
virtual void Close()
close the handler
Definition httpmessagehandler.cc:53
void SetTcpPort(ushort port)
set tcpPort
Definition httpmessagehandler.h:59
virtual bool HandleMessage(const Ptr< Messaging::Message > &msg)
handle a message, return true if handled
Definition httpmessagehandler.cc:81
void OnAttachRequestHandler(const Ptr< AttachRequestHandler > &msg)
handle AttachRequestHandler message
Definition httpmessagehandler.cc:106
virtual void DoWork()
do per-frame work
Definition httpmessagehandler.cc:68
void OnRemoveRequestHandler(const Ptr< RemoveRequestHandler > &msg)
handle RemoveRequestHandler message
Definition httpmessagehandler.cc:115
ushort DefaultTcpPort
Definition httpmessagehandler.h:45
Ptr< HttpServer > httpServer
Definition httpmessagehandler.h:52
HttpMessageHandler()
constructor
Definition httpmessagehandler.cc:20
Base class for message handlers attached to Interface objects.
Definition interfacehandlerbase.h:19
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
This file was generated with Nebula Trifid's idlc compiler tool.
Definition defaulthttprequesthandler.cc:15
unsigned short ushort
Definition types.h:32