summaryrefslogtreecommitdiff
path: root/implementation/endpoints/include/client_endpoint_impl.hpp
diff options
context:
space:
mode:
authorJuergen Gehring <juergen.gehring@bmw.de>2017-06-20 02:53:03 -0700
committerJuergen Gehring <juergen.gehring@bmw.de>2017-06-20 02:53:03 -0700
commit27698301f8bb528c2f618af5995865523de7e0d6 (patch)
treefb91dddc521348bb99c2a5046cbe95efa3c111e1 /implementation/endpoints/include/client_endpoint_impl.hpp
parentcf67875117ef7b1b9a25fe1f23e8b7ba1197c934 (diff)
downloadvSomeIP-27698301f8bb528c2f618af5995865523de7e0d6.tar.gz
vSomeIP 2.6.42.6.4
Diffstat (limited to 'implementation/endpoints/include/client_endpoint_impl.hpp')
-rw-r--r--implementation/endpoints/include/client_endpoint_impl.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/implementation/endpoints/include/client_endpoint_impl.hpp b/implementation/endpoints/include/client_endpoint_impl.hpp
index ef52067..141e95f 100644
--- a/implementation/endpoints/include/client_endpoint_impl.hpp
+++ b/implementation/endpoints/include/client_endpoint_impl.hpp
@@ -46,7 +46,7 @@ public:
bool flush();
void stop();
- void restart();
+ virtual void restart() = 0;
bool is_client() const;
@@ -68,9 +68,11 @@ public:
protected:
virtual void send_queued() = 0;
void shutdown_and_close_socket();
+ void shutdown_and_close_socket_unlocked();
+ void start_connect_timer();
mutable std::mutex socket_mutex_;
- socket_type socket_;
+ std::unique_ptr<socket_type> socket_;
endpoint_type remote_;
boost::asio::steady_timer flush_timer_;