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

Function TSNetAcceptNamedProtocol

src/api/InkAPI.cc:6109–6121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6107}
6108
6109TSReturnCode
6110TSNetAcceptNamedProtocol(TSCont contp, const char *protocol)
6111{
6112 sdk_assert(protocol != nullptr);
6113 sdk_assert(contp != nullptr);
6114 sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS);
6115
6116 if (!ssl_register_protocol(protocol, reinterpret_cast<INKContInternal *>(contp))) {
6117 return TS_ERROR;
6118 }
6119
6120 return TS_SUCCESS;
6121}
6122
6123/* DNS Lookups */
6124/// Context structure for the lookup callback to the plugin.

Callers

nothing calls this directly

Calls 2

ssl_register_protocolFunction · 0.85

Tested by

no test coverage detected