Public Member Functions | Private Member Functions | Private Attributes | List of all members
web_video_server::MultipartStream Class Reference

#include <multipart_stream.h>

Public Member Functions

 MultipartStream (async_web_server_cpp::HttpConnectionPtr &connection, const std::string &boundry="boundarydonotcross", std::size_t max_queue_size=1)
 
void sendInitialHeader ()
 
void sendPart (const ros::Time &time, const std::string &type, const boost::asio::const_buffer &buffer, async_web_server_cpp::HttpConnection::ResourcePtr resource)
 
void sendPartAndClear (const ros::Time &time, const std::string &type, std::vector< unsigned char > &data)
 
void sendPartFooter (const ros::Time &time)
 
void sendPartHeader (const ros::Time &time, const std::string &type, size_t payload_size)
 

Private Member Functions

bool isBusy ()
 

Private Attributes

std::string boundry_
 
async_web_server_cpp::HttpConnectionPtr connection_
 
const std::size_t max_queue_size_
 
std::queue< PendingFooterpending_footers_
 

Detailed Description

Definition at line 17 of file multipart_stream.h.

Constructor & Destructor Documentation

◆ MultipartStream()

web_video_server::MultipartStream::MultipartStream ( async_web_server_cpp::HttpConnectionPtr connection,
const std::string &  boundry = "boundarydonotcross",
std::size_t  max_queue_size = 1 
)

Definition at line 7 of file multipart_stream.cpp.

Member Function Documentation

◆ isBusy()

bool web_video_server::MultipartStream::isBusy ( )
private

Definition at line 65 of file multipart_stream.cpp.

◆ sendInitialHeader()

void web_video_server::MultipartStream::sendInitialHeader ( )

Definition at line 14 of file multipart_stream.cpp.

◆ sendPart()

void web_video_server::MultipartStream::sendPart ( const ros::Time time,
const std::string &  type,
const boost::asio::const_buffer &  buffer,
async_web_server_cpp::HttpConnection::ResourcePtr  resource 
)

Definition at line 54 of file multipart_stream.cpp.

◆ sendPartAndClear()

void web_video_server::MultipartStream::sendPartAndClear ( const ros::Time time,
const std::string &  type,
std::vector< unsigned char > &  data 
)

Definition at line 44 of file multipart_stream.cpp.

◆ sendPartFooter()

void web_video_server::MultipartStream::sendPartFooter ( const ros::Time time)

Definition at line 35 of file multipart_stream.cpp.

◆ sendPartHeader()

void web_video_server::MultipartStream::sendPartHeader ( const ros::Time time,
const std::string &  type,
size_t  payload_size 
)

Definition at line 23 of file multipart_stream.cpp.

Member Data Documentation

◆ boundry_

std::string web_video_server::MultipartStream::boundry_
private

Definition at line 36 of file multipart_stream.h.

◆ connection_

async_web_server_cpp::HttpConnectionPtr web_video_server::MultipartStream::connection_
private

Definition at line 35 of file multipart_stream.h.

◆ max_queue_size_

const std::size_t web_video_server::MultipartStream::max_queue_size_
private

Definition at line 34 of file multipart_stream.h.

◆ pending_footers_

std::queue<PendingFooter> web_video_server::MultipartStream::pending_footers_
private

Definition at line 37 of file multipart_stream.h.


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


web_video_server
Author(s): Mitchell Wills
autogenerated on Wed Mar 2 2022 01:13:36