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

Function TSPortDescriptorParse

src/api/InkAPI.cc:7786–7797  ·  view source on GitHub ↗

Parse a port descriptor for the proxy.config.http.server_ports descriptor format.

Source from the content-addressed store, hash-verified

7784
7785// Parse a port descriptor for the proxy.config.http.server_ports descriptor format.
7786TSPortDescriptor
7787TSPortDescriptorParse(const char *descriptor)
7788{
7789 HttpProxyPort *port = new HttpProxyPort();
7790
7791 if (descriptor && port->processOptions(descriptor)) {
7792 return reinterpret_cast<TSPortDescriptor>(port);
7793 }
7794
7795 delete port;
7796 return nullptr;
7797}
7798
7799TSReturnCode
7800TSPortDescriptorAccept(TSPortDescriptor descp, TSCont contp)

Callers 2

PassthruListenFunction · 0.85

Calls 1

processOptionsMethod · 0.80