ofxHTTP
A collection of tools for HTTP.
ofx::HTTP::IPVideoRoute Class Reference
Inheritance diagram for ofx::HTTP::IPVideoRoute:
ofx::HTTP::BaseRoute_< IPVideoRouteSettings > ofx::HTTP::AbstractRoute ofx::HTTP::AbstractHTTPRequestHandler ofx::HTTP::AbstractHTTPRequestHandlerFactory ofx::HTTP::AbstractServerEventRequestHandler

Public Types

typedef IPVideoRouteSettings Settings
 

Public Member Functions

 IPVideoRoute (const Settings &settings)
 
Poco::Net::HTTPRequestHandler * createRequestHandler (const Poco::Net::HTTPServerRequest &request) override
 Creates a new HTTPRequestHandler for the given request. More...
 
void send (const ofPixels &pix) const
 
std::size_t numConnections () const
 
virtual void stop () override
 Stop any pending activity and close this route. More...
 
- Public Member Functions inherited from ofx::HTTP::BaseRoute_< IPVideoRouteSettings >
 BaseRoute_ (const IPVideoRouteSettings &settings=IPVideoRouteSettings())
 Create a BaseRoute. More...
 
virtual ~BaseRoute_ ()
 Destroy a BaseRoute.
 
virtual void setup (const IPVideoRouteSettings &settings)
 Setup the route with settings. More...
 
virtual std::string routePathPattern () const override
 Get the route's regex path pattern. More...
 
virtual bool canHandleRequest (const Poco::Net::HTTPServerRequest &request, bool isSecurePort) const override
 Determine if this route can handle the given request. More...
 
void handleRequest (Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response) override
 
virtual void handleRequest (ServerEventArgs &evt) override
 Handle the ServerEventArgs. More...
 
const IPVideoRouteSettingssettings () const
 
AbstractServergetServer () override
 
void setServer (AbstractServer *server) override
 Set the server that owns this route. More...
 
- Public Member Functions inherited from ofx::HTTP::AbstractRoute
virtual ~AbstractRoute ()
 Destroy the AbstractRoute instance.
 
- Public Member Functions inherited from ofx::HTTP::AbstractHTTPRequestHandler
virtual ~AbstractHTTPRequestHandler ()
 Destroy the AbstractHTTPRequestHandler.
 
- Public Member Functions inherited from ofx::HTTP::AbstractServerEventRequestHandler
virtual ~AbstractServerEventRequestHandler ()
 Destroy the AbstractServerEventRequestHandler.
 
- Public Member Functions inherited from ofx::HTTP::AbstractHTTPRequestHandlerFactory
virtual ~AbstractHTTPRequestHandlerFactory ()
 Destroy the AbstractHTTPRequestHandlerFactory.
 

Protected Types

typedef std::vector< IPVideoConnection * > Connections
 

Protected Member Functions

void addConnection (IPVideoConnection *handler)
 
void removeConnection (IPVideoConnection *handler)
 

Protected Attributes

Connections _connections
 
std::mutex _mutex
 
- Protected Attributes inherited from ofx::HTTP::BaseRoute_< IPVideoRouteSettings >
IPVideoRouteSettings _settings
 The settings.
 
AbstractServer_server
 A pointer to the server.
 

Friends

class IPVideoConnection
 

Member Function Documentation

◆ createRequestHandler()

Poco::Net::HTTPRequestHandler * ofx::HTTP::IPVideoRoute::createRequestHandler ( const Poco::Net::HTTPServerRequest &  request)
overridevirtual

Creates a new HTTPRequestHandler for the given request.

Before this is called, it is expected that the calling server has confirmed that this route is capable of handling the request by calling canHandleRequest().

Parameters
requestThe HTTPServerRequest to be passed to the handler.
Returns
An HTTPRequestHandler that will handle the request.
Note
Redeclared here for documentation puposes.

Reimplemented from ofx::HTTP::BaseRoute_< IPVideoRouteSettings >.

◆ stop()

void ofx::HTTP::IPVideoRoute::stop ( )
overridevirtual

Stop any pending activity and close this route.

This method may block until the route is fully stopped.

Reimplemented from ofx::HTTP::BaseRoute_< IPVideoRouteSettings >.


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