VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gv::HttpServerInput Class Reference

An ImageInput class that integrates with the event loop, with automatic re-opening if the channel goes away for a while. More...

#include <gvhttpserver.h>

+ Inheritance diagram for Gv::HttpServerInput:

Public Member Functions

 HttpServerInput (Gr::ImageConverter &, const std::string &channel_name, unsigned int reopen_timeout)
 Constructor taking a channel name.
 
virtual ~HttpServerInput ()
 Destructor.
 
void start ()
 Starts the input.
 
- Public Member Functions inherited from Gv::ImageInput
 ImageInput (Gr::ImageConverter &, const std::string &channel_name, bool lazy_open)
 Constructor.
 
 ~ImageInput ()
 Destructor.
 
int fd () const
 Returns the publication channel file descriptor, or -1 if close()d. More...
 
bool handleReadEvent ()
 Called to process a read event on the file descriptor. More...
 
std::string info () const
 Returns the channel info.
 
void close ()
 Closes the input channel, releasing resources.
 
bool open ()
 Tries to re-open the input channel some time after handleReadEvent() has returned false. More...
 
- Public Member Functions inherited from Gv::ImageInputSource
 ImageInputSource (Gr::ImageConverter &, const std::string &source_name=std::string())
 Constructor.
 
virtual ~ImageInputSource ()
 Destructor.
 
size_t handlers () const
 Returns the number of registered handlers.
 
void addImageInputHandler (ImageInputHandler &)
 Adds a handler for image callbacks.
 
void removeImageInputHandler (ImageInputHandler &)
 Removes a handler for image callbacks.
 
std::string name () const
 Returns the source name, as passed to the constructor.
 

Additional Inherited Members

- Protected Member Functions inherited from Gv::ImageInputSource
bool sendImageInput (Gr::Image, ImageInputHandler *one_handler_p=nullptr)
 Sends a new image to all registered handlers, or optionally to just one of them. More...
 
void sendNonImageInput (Gr::Image non_image, const std::string &type_str, ImageInputHandler *one_handler_p=nullptr)
 Sends non-image data to registered handlers (or one).
 

Detailed Description

An ImageInput class that integrates with the event loop, with automatic re-opening if the channel goes away for a while.

Definition at line 48 of file gvhttpserver.h.


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