oZone Server Framework
Enabling Innovation in Video Applications
HttpController Class Reference
Inheritance diagram for HttpController:

Public Member Functions

 HttpController (const std::string &name, int port)
 
ConnectionnewConnection (TcpInetSocket *socket)
 
HttpSessiongetSession (uint32_t session)
 
HttpSessionnewSession (uint32_t session)
 
void deleteSession (uint32_t session)
 
- Public Member Functions inherited from Controller
const std::string & proto () const
 Return the protocol string.
 
const char * cproto () const
 
uint32_t port () const
 
void addStream (const std::string &streamName, const std::string &streamClass)
 
void addStream (const std::string &streamPath, FeedProvider &streamProvider)
 
void removeStream (const std::string &streamTag)
 
bool verifyStreamName (const std::string &streamName)
 
FeedProviderfindStream (const std::string &streamName, const std::string &streamSource)
 
- Public Member Functions inherited from VideoConsumer
VideoProvidervideoProvider () const
 Return the first provider cast appropriately, shortcut for when providers == 1. More...
 
- Public Member Functions inherited from FeedConsumer
virtual bool registerProvider (FeedProvider &provider, const FeedLink &link=gQueuedFeedLink)
 
virtual bool deregisterProvider (FeedProvider &provider, bool reciprocate=true)
 
virtual bool deregisterAllProviders ()
 
FeedProviderprovider () const
 Return the first provider, shortcut for when providers == 1.
 
virtual bool hasProvider () const
 
virtual bool hasProvider (FeedProvider &provider) const
 
virtual bool queueFrame (const FramePtr &, FeedProvider *)
 
- Public Member Functions inherited from FeedBase
const std::string & cl4ss () const
 Return the class string.
 
const char * cclass () const
 Return the class string as a c-style string.
 
const std::string & name () const
 Return the name string.
 
const char * cname () const
 Return the name string as a c-style string.
 
const std::string & identity () const
 Return the identity string.
 
const char * cidentity () const
 Return the identity string as a c-style string.
 

Additional Inherited Members

- Public Types inherited from FeedConsumer
typedef std::map< FeedProvider *, FeedLinkProviderMap
 
typedef std::deque< FramePtrFrameQueue
 
- Static Public Member Functions inherited from Controller
static std::string makePath (const std::string &streamName, const std::string streamSource)
 
- Static Public Member Functions inherited from FeedBase
static std::string makeIdentity (const std::string &cl4ss, const std::string &name)
 Build identity from the class and name strings.
 
- Protected Member Functions inherited from Controller
 Controller (const std::string &tag, const std::string &id, const std::string &proto, uint32_t port)
 
- Protected Member Functions inherited from VideoConsumer
 VideoConsumer (const std::string &tag, const std::string &id, int providerLimit=1)
 
 VideoConsumer (const std::string &tag, FeedProvider &provider, const FeedLink &link=gQueuedFeedLink)
 
- Protected Member Functions inherited from FeedConsumer
 FeedConsumer (int providerLimit=1)
 
 FeedConsumer (FeedProvider &provider, const FeedLink &link=gQueuedFeedLink)
 
bool waitForProviders (unsigned int=0)
 
bool checkProviders ()
 Verify that providers exist and are in good condition. More...
 
virtual void cleanup ()
 Tidy up relationships with providers etc before destruction.
 
- Protected Member Functions inherited from FeedBase
void setIdentity (const std::string &cl4ss, const std::string &name)
 Identify this instance.
 
- Protected Attributes inherited from Controller
std::string mProto
 Protocol identification string.
 
uint32_t mPort
 Key port for listening on.
 
ApplicationClassMap mApplicationClasses
 Set of application names to provider classes.
 
ApplicationInstanceMap mApplicationInstances
 Set of application names/paths to provider instances.
 
- Protected Attributes inherited from FeedConsumer
Mutex mQueueMutex
 Protects the frame queue.
 
FrameQueue mFrameQueue
 Queue of frames from providers that are ready to be handled.
 
int mProviderLimit
 Max number of providers, many consumers can only have one.
 
Mutex mProviderMutex
 Protects the provider map.
 
ProviderMap mProviders
 Collection of providers.
 
- Protected Attributes inherited from FeedBase
std::string mClass
 Identifier for the class of provider/consumer.
 
std::string mName
 Unique identifier of this provider/consumer instance.
 
- Static Protected Attributes inherited from FeedBase
static const int INTERFRAME_TIMEOUT = 10000
 Needs to be short enough to cope with all possible frame rates.This allows for 100fps.
 

Detailed Description

Definition at line 15 of file ozHttpController.h.

Member Function Documentation

void HttpController::deleteSession ( uint32_t  session)
Parameters
session

Definition at line 59 of file ozHttpController.cpp.

HttpSession * HttpController::getSession ( uint32_t  session)
Parameters
session
Returns

Definition at line 27 of file ozHttpController.cpp.

Connection * HttpController::newConnection ( TcpInetSocket socket)
virtual
Parameters
socket
Returns

Implements Controller.

Definition at line 15 of file ozHttpController.cpp.

HttpSession * HttpController::newSession ( uint32_t  session)
Parameters
session
Returns

Definition at line 46 of file ozHttpController.cpp.

Here is the caller graph for this function:


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