| 863 | |
| 864 | template<typename Protocol> |
| 865 | bool client_endpoint_impl<Protocol>::ensure_connected(const boost::system::error_code& _error) { |
| 866 | bool result = true; |
| 867 | if (!is_established_or_connected()) { |
| 868 | VSOMEIP_WARNING_P << "Socket not yet connected (" << _error.message() << ") remote: " << get_remote_information() << ", endpoint > " |
| 869 | << this << " socket state > " << to_string(state_.load()); |
| 870 | was_not_connected_ = true; |
| 871 | is_sending_ = false; |
| 872 | result = false; |
| 873 | } |
| 874 | return result; |
| 875 | } |
| 876 | |
| 877 | template<typename Protocol> |
| 878 | const char* client_endpoint_impl<Protocol>::to_string(cei_state_e state) { |