base class for asynchronous http websockets used for connecting to cloud services
More...
#include <asio_service_http.hpp>
|
| asio_service_http (const std::string token) |
|
void | schedule (boost::asio::ip::tcp::resolver::query &query, boost::asio::ip::tcp::resolver &resolver, boost::asio::io_service &io_service) |
|
|
std::unique_ptr
< boost::asio::ip::tcp::socket > | socket_ |
| TCP Socket (plain-text) More...
|
|
base class for asynchronous http websockets used for connecting to cloud services
- Version
- 0.6.0
- Date
- May 2016
- Author
- Alex Gkiokas a.gki.nosp@m.okas.nosp@m.@orte.nosp@m.lio..nosp@m.co.uk TODO: rename to
asio_socket_http
Definition at line 14 of file asio_service_http.hpp.
rapp::cloud::asio_service_http::asio_service_http |
( |
const std::string |
token | ) |
|
void rapp::cloud::asio_service_http::check_timeout |
( |
| ) |
|
|
protected |
void rapp::cloud::asio_service_http::handle_connect |
( |
const boost::system::error_code & |
err, |
|
|
boost::asio::ip::tcp::resolver::iterator |
endpoint_iterator |
|
) |
| |
|
protected |
Callback for Handling Connection Events
- Parameters
-
err | is a possible error |
endpoint_iterator | is boosts' hostname address handler |
Definition at line 59 of file asio_service_http.cpp.
void rapp::cloud::asio_service_http::handle_read_content |
( |
const boost::system::error_code & |
err, |
|
|
std::size_t |
bytes |
|
) |
| |
|
protected |
Callback for Handling Actual Data Contents.
- Parameters
-
err | is a possible error message |
Definition at line 163 of file asio_service_http.cpp.
void rapp::cloud::asio_service_http::handle_read_headers |
( |
const boost::system::error_code & |
err | ) |
|
|
protected |
Callback for Handling Headers.
- Parameters
-
err | is a possible error message |
Definition at line 143 of file asio_service_http.cpp.
void rapp::cloud::asio_service_http::handle_read_status_line |
( |
const boost::system::error_code & |
err | ) |
|
|
protected |
Callback for handling HTTP Header Response Data.
- Parameters
-
err | is a possible error message |
Definition at line 107 of file asio_service_http.cpp.
void rapp::cloud::asio_service_http::handle_resolve |
( |
const boost::system::error_code & |
err, |
|
|
boost::asio::ip::tcp::resolver::iterator |
endpoint_iterator |
|
) |
| |
|
protected |
Callback for Handling Address Resolution.
- Parameters
-
err | is a possible error |
endpoint_iterator | is boost's hostname address handler |
Definition at line 41 of file asio_service_http.cpp.
void rapp::cloud::asio_service_http::handle_write_request |
( |
const boost::system::error_code & |
err | ) |
|
|
protected |
Callback for handling request and waiting for response.
- Parameters
-
Definition at line 88 of file asio_service_http.cpp.
void rapp::cloud::asio_service_http::reset |
( |
| ) |
|
|
protected |
void rapp::cloud::asio_service_http::schedule |
( |
boost::asio::ip::tcp::resolver::query & |
query, |
|
|
boost::asio::ip::tcp::resolver & |
resolver, |
|
|
boost::asio::io_service & |
io_service |
|
) |
| |
|
virtual |
schedule this client as a job for execution using
- Parameters
-
query | defines the actual URL/URI |
resolver | is the URL/URI resolver reference |
io_service | is the queue on which jobs are scheduled |
Implements rapp::cloud::asio_socket.
Definition at line 6 of file asio_service_http.cpp.
std::unique_ptr<boost::asio::ip::tcp::socket> rapp::cloud::asio_service_http::socket_ |
|
private |
The documentation for this class was generated from the following files: