Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef ASIO_SENDER_HPP
00034 #define ASIO_SENDER_HPP
00035
00036 #include <boost/asio.hpp>
00037
00038 #include "../api/ana.hpp"
00039
00040 using boost::asio::ip::tcp;
00041
00042 class asio_sender : private ana::detail::sender
00043 {
00044
00045 public:
00046 void send( ana::detail::shared_buffer,
00047 tcp::socket&,
00048 ana::send_handler*,
00049 ana::detail::sender*,
00050 ana::operation_id);
00051
00052 private:
00053 void handle_sent_header(const boost::system::error_code& ec,
00054 ana::serializer::bostream*,
00055 tcp::socket*,
00056 ana::detail::shared_buffer,
00057 ana::send_handler*,
00058 ana::timer*,
00059 size_t,
00060 ana::operation_id);
00061
00062 void handle_partial_send( ana::detail::shared_buffer,
00063 const boost::system::error_code&,
00064 tcp::socket*,
00065 ana::send_handler*,
00066 ana::timer*,
00067 size_t,
00068 size_t,
00069 ana::operation_id);
00070
00071 void handle_send(const boost::system::error_code&,
00072 ana::send_handler*,
00073 ana::timer*,
00074 ana::operation_id,
00075 bool from_timeout = false);
00076 };
00077
00078 #endif
00079