00001 #ifndef BOOST_RPC_SIMPLE_CONNECTOR
00002 #define BOOST_RPC_SIMPLE_CONNECTOR
00003
00004 #include <boost/asio.hpp>
00005
00006 namespace boost {
00007 namespace rpc {
00008
00009 class simple_connector
00010 {
00011 public:
00012 simple_connector(const asio::ip::tcp::endpoint &endpoint_) : endpoint_recv(endpoint_) {}
00013 void connect(boost::asio::ip::tcp::socket &socket)
00014 {
00015 socket.connect(endpoint_recv);
00016 }
00017 private:
00018 boost::asio::ip::tcp::endpoint endpoint_recv;
00019 };
00020
00021 }
00022 }
00023
00024 #endif // BOOST_RPC_SIMPLE_CONNECTOR