MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / make_bad_request_error_response

Function make_bad_request_error_response

tools/rtpsrelay/RelayHandler.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31namespace {
32 OpenDDS::STUN::Message make_bad_request_error_response(const OpenDDS::STUN::Message& a_message,
33 const std::string& a_reason)
34 {
35 OpenDDS::STUN::Message response(OpenDDS::STUN::ERROR_RESPONSE, a_message.method());
36 response.transaction_id(a_message.transaction_id());
37 response.append_attribute(OpenDDS::STUN::make_error_code(OpenDDS::STUN::BAD_REQUEST, a_reason));
38 response.append_attribute(OpenDDS::STUN::make_fingerprint());
39 return response;
40 }
41
42 OpenDDS::STUN::Message make_unknown_attributes_error_response(const OpenDDS::STUN::Message& a_message,
43 const std::vector<OpenDDS::STUN::AttributeType>& a_unknown_attributes)

Callers 2

process_messageMethod · 0.85
requestMethod · 0.85

Calls 5

make_error_codeFunction · 0.85
make_fingerprintFunction · 0.85
methodMethod · 0.80
transaction_idMethod · 0.80
append_attributeMethod · 0.80

Tested by

no test coverage detected