All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_WebTaskHandler Class Referenceabstract

#include <NET_WebTaskHandler.h>

+ Inheritance diagram for NET_WebTaskHandler:

Public Types

using Callback = UT_Functor< void >

Public Member Functions

 NET_WebTaskHandler (NET_WebEndpoint &ep)
virtual ~NET_WebTaskHandler ()=default
const NET_TimeprocessStartTime () const
virtual int64 calcElapsedTime (time_t now) const
virtual const char * className () const =0
void setHasWork (bool has_work)
SYS_FORCE_INLINE bool isFinished () const
virtual void onProcess ()

Public Attributes

Callback myOnOpen
Callback myOnClose
bool myHasMoreWork
NET_Time myProcessTime

Detailed Description

Definition at line 52 of file NET_WebTaskHandler.h.

Member Typedef Documentation

Definition at line 55 of file NET_WebTaskHandler.h.

Constructor & Destructor Documentation

NET_WebTaskHandler::NET_WebTaskHandler ( NET_WebEndpoint ep)
virtual NET_WebTaskHandler::~NET_WebTaskHandler ( )

Member Function Documentation

virtual int64 NET_WebTaskHandler::calcElapsedTime ( time_t  now) const

Reimplemented in NET_WebSocketHandler.

Definition at line 61 of file NET_WebTaskHandler.h.

virtual const char* NET_WebTaskHandler::className ( ) const
pure virtual
SYS_FORCE_INLINE bool NET_WebTaskHandler::isFinished ( ) const

Definition at line 72 of file NET_WebTaskHandler.h.

virtual void NET_WebTaskHandler::onProcess ( )

Reimplemented in NET_WebSocketHandler, and NET_HTTPWebTaskHandler.

Definition at line 80 of file NET_WebTaskHandler.h.

const NET_Time& NET_WebTaskHandler::processStartTime ( ) const

Definition at line 60 of file NET_WebTaskHandler.h.

void NET_WebTaskHandler::setHasWork ( bool  has_work)

Definition at line 70 of file NET_WebTaskHandler.h.

Member Data Documentation

NET_WebEndpoint& NET_WebTaskHandler::myEP

Definition at line 74 of file NET_WebTaskHandler.h.

bool NET_WebTaskHandler::myHasMoreWork

Definition at line 82 of file NET_WebTaskHandler.h.

Callback NET_WebTaskHandler::myOnClose

Definition at line 79 of file NET_WebTaskHandler.h.

Callback NET_WebTaskHandler::myOnOpen

Definition at line 77 of file NET_WebTaskHandler.h.

NET_Time NET_WebTaskHandler::myProcessTime

Definition at line 84 of file NET_WebTaskHandler.h.

The documentation for this class was generated from the following file: