#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< PendingFooter > | pending_footers_ |
Definition at line 17 of file multipart_stream.h.
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.
|
private |
Definition at line 65 of file multipart_stream.cpp.
void web_video_server::MultipartStream::sendInitialHeader | ( | ) |
Definition at line 14 of file multipart_stream.cpp.
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.
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.
void web_video_server::MultipartStream::sendPartFooter | ( | const ros::Time & | time | ) |
Definition at line 35 of file multipart_stream.cpp.
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.
|
private |
Definition at line 36 of file multipart_stream.h.
|
private |
Definition at line 35 of file multipart_stream.h.
|
private |
Definition at line 34 of file multipart_stream.h.
|
private |
Definition at line 37 of file multipart_stream.h.