summaryrefslogtreecommitdiff
path: root/implementation/endpoints/include/local_client_endpoint_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'implementation/endpoints/include/local_client_endpoint_impl.hpp')
-rw-r--r--implementation/endpoints/include/local_client_endpoint_impl.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/implementation/endpoints/include/local_client_endpoint_impl.hpp b/implementation/endpoints/include/local_client_endpoint_impl.hpp
index 79a0420..8f9b224 100644
--- a/implementation/endpoints/include/local_client_endpoint_impl.hpp
+++ b/implementation/endpoints/include/local_client_endpoint_impl.hpp
@@ -31,6 +31,8 @@ typedef client_endpoint_impl<
class local_client_endpoint_impl: public local_client_endpoint_base_impl {
public:
+ typedef std::function<void()> error_handler_t;
+
local_client_endpoint_impl(std::shared_ptr<endpoint_host> _host,
endpoint_type _remote,
boost::asio::io_service &_io,
@@ -42,6 +44,11 @@ public:
bool is_local() const;
+ bool get_remote_address(boost::asio::ip::address &_address) const;
+ unsigned short get_remote_port() const;
+
+ void register_error_handler(error_handler_t _error_handler);
+
private:
void send_queued();
@@ -52,7 +59,9 @@ private:
void receive_cbk(boost::system::error_code const &_error,
std::size_t _bytes);
- receive_buffer_t recv_buffer_;
+ message_buffer_t recv_buffer_;
+
+ error_handler_t error_handler_;
};
} // namespace vsomeip