struct CCL::Web::IWebServer
Overview
Server interface for protocols like HTTP. More…
#include <iwebserver.h> struct IWebServer: public CCL::IUnknown { // methods virtual void CCL_API setApp (IWebServerApp* app) = 0; virtual tresult CCL_API startup (const Net::SocketAddress& address) = 0; virtual tresult CCL_API getAddress (Net::SocketAddress& address) = 0; virtual tresult CCL_API run () = 0; virtual void CCL_API quit () = 0; };
Inherited Members
public: // methods virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0; virtual unsigned int CCL_API retain () = 0; virtual unsigned int CCL_API release () = 0;
Detailed Documentation
Server interface for protocols like HTTP.
Methods
virtual void CCL_API setApp (IWebServerApp* app) = 0
Assign application callback interface.
virtual tresult CCL_API startup (const Net::SocketAddress& address) = 0
Start server bound to given address.
virtual tresult CCL_API getAddress (Net::SocketAddress& address) = 0
Get address this server has been bound to.
virtual tresult CCL_API run () = 0
Run server loop.
virtual void CCL_API quit () = 0
Request quit of server loop.