WPILibC++  unspecified
cs::MjpegServer Class Reference

A sink that acts as a MJPEG-over-HTTP network server. More...

#include <cscore_oo.h>

Inheritance diagram for cs::MjpegServer:
Collaboration diagram for cs::MjpegServer:

Public Member Functions

 MjpegServer (wpi::StringRef name, wpi::StringRef listenAddress, int port)
 Create a MJPEG-over-HTTP server sink. More...
 
 MjpegServer (wpi::StringRef name, int port)
 Create a MJPEG-over-HTTP server sink. More...
 
std::string GetListenAddress () const
 Get the listen address of the server.
 
int GetPort () const
 Get the port number of the server.
 
- Public Member Functions inherited from cs::VideoSink
 VideoSink (const VideoSink &sink)
 
 VideoSink (VideoSink &&sink) noexcept
 
VideoSinkoperator= (VideoSink other) noexcept
 
 operator bool () const
 
int GetHandle () const
 
bool operator== (const VideoSink &other) const
 
bool operator!= (const VideoSink &other) const
 
Kind GetKind () const
 Get the kind of the sink.
 
std::string GetName () const
 Get the name of the sink. More...
 
std::string GetDescription () const
 Get the sink description. This is sink-kind specific.
 
void SetSource (VideoSource source)
 Configure which source should provide frames to this sink. More...
 
VideoSource GetSource () const
 Get the connected source. More...
 
VideoProperty GetSourceProperty (wpi::StringRef name)
 Get a property of the associated source. More...
 
CS_Status GetLastStatus () const
 

Additional Inherited Members

- Public Types inherited from cs::VideoSink
enum  Kind { kUnknown = CS_SINK_UNKNOWN, kMjpeg = CS_SINK_MJPEG, kCv = CS_SINK_CV }
 
- Static Public Member Functions inherited from cs::VideoSink
static std::vector< VideoSinkEnumerateSinks ()
 Enumerate all existing sinks. More...
 
- Protected Member Functions inherited from cs::VideoSink
 VideoSink (CS_Sink handle)
 
- Protected Attributes inherited from cs::VideoSink
CS_Status m_status = 0
 
CS_Sink m_handle
 

Detailed Description

A sink that acts as a MJPEG-over-HTTP network server.

Constructor & Destructor Documentation

cs::MjpegServer::MjpegServer ( wpi::StringRef  name,
wpi::StringRef  listenAddress,
int  port 
)
inline

Create a MJPEG-over-HTTP server sink.

Parameters
nameSink name (arbitrary unique identifier)
listenAddressTCP listen address (empty string for all addresses)
portTCP port number
cs::MjpegServer::MjpegServer ( wpi::StringRef  name,
int  port 
)
inline

Create a MJPEG-over-HTTP server sink.

Parameters
nameSink name (arbitrary unique identifier)
portTCP port number

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