MCPcopy Create free account
hub / github.com/COVESA/vsomeip / on_error

Method on_error

implementation/endpoints/src/endpoint_manager_impl.cpp:950–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948}
949
950void endpoint_manager_impl::on_error(const byte_t* _data, length_t _length, boardnet_endpoint* const _receiver,
951 const boost::asio::ip::address& _remote_address, std::uint16_t _remote_port) {
952 instance_t its_instance = 0;
953 if (_length >= VSOMEIP_SERVICE_POS_MAX) {
954 service_t its_service = bithelper::read_uint16_be(&_data[VSOMEIP_SERVICE_POS_MIN]);
955 its_instance = find_instance(its_service, _receiver);
956 }
957 router_->send_error(return_code_e::E_MALFORMED_MESSAGE, _data, _length, its_instance, _receiver->is_reliable(), _receiver,
958 _remote_address, _remote_port);
959}
960
961void endpoint_manager_impl::get_used_client_ports(const boost::asio::ip::address& _remote_address, port_t _remote_port,
962 std::map<bool, std::set<port_t>>& _used_ports) {

Callers 2

receive_cbkMethod · 0.80

Calls 2

send_errorMethod · 0.45
is_reliableMethod · 0.45

Tested by

no test coverage detected