26 #ifndef __IMAGESERVERCONNECTION__H__INCL__
27 #define __IMAGESERVERCONNECTION__H__INCL__
44 static std::shared_ptr<ImageServerConnection>
create(boost::asio::io_context& io);
46 boost::asio::ip::tcp::socket&
socket();
58 static bool starts_with(std::string& haystack,
const char *
const needle);
76 #endif // __IMAGESERVERCONNECTION__H__INCL__
static std::shared_ptr< ImageServerConnection > create(boost::asio::io_context &io)
static boost::asio::const_buffers_1 _responseRedirectEnd
static boost::asio::const_buffers_1 _responseNotFound
std::shared_ptr< std::vector< char > > _imageData
boost::asio::ip::tcp::socket _socket
static boost::asio::const_buffers_1 _responseRedirectBegin
static boost::asio::const_buffers_1 _responseOK
Handles a client connection to the image server.
boost::asio::ip::tcp::socket & socket()
boost::asio::streambuf _buffer
static bool starts_with(std::string &haystack, const char *const needle)
ImageServerConnection(boost::asio::io_context &io)