MCPcopy Create free account
hub / github.com/apache/trafficserver / populate_protocol

Method populate_protocol

src/iocore/net/UnixNetVConnection.cc:1470–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1468}
1469
1470int
1471UnixNetVConnection::populate_protocol(std::string_view *results, int n) const
1472{
1473 int retval = 0;
1474 if (n > retval) {
1475 if (!(results[retval] = options.get_proto_string()).empty()) {
1476 ++retval;
1477 }
1478 if (n > retval) {
1479 if (!(results[retval] = options.get_family_string()).empty()) {
1480 ++retval;
1481 }
1482 }
1483 }
1484 return retval;
1485}
1486
1487const char *
1488UnixNetVConnection::protocol_contains(std::string_view tag) const

Callers

nothing calls this directly

Calls 3

get_proto_stringMethod · 0.80
get_family_stringMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected