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

Method findEndpoint

src/iocore/net/SSLNextProtocolSet.cc:106–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106Continuation *
107SSLNextProtocolSet::findEndpoint(const unsigned char *proto, unsigned len) const
108{
109 for (const NextProtocolEndpoint *ep = this->endpoints.head; ep != nullptr; ep = this->endpoints.next(ep)) {
110 size_t sz = strlen(ep->protocol);
111 if (sz == len && memcmp(ep->protocol, proto, len) == 0) {
112 return ep->endpoint;
113 }
114 }
115 return nullptr;
116}
117
118SSLNextProtocolSet::SSLNextProtocolSet() {}
119

Callers 1

setSelectedProtocolMethod · 0.80

Calls 2

memcmpFunction · 0.50
nextMethod · 0.45

Tested by

no test coverage detected