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

Function TSPortDescriptorAccept

src/api/InkAPI.cc:7799–7813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7797}
7798
7799TSReturnCode
7800TSPortDescriptorAccept(TSPortDescriptor descp, TSCont contp)
7801{
7802 Action *action = nullptr;
7803 HttpProxyPort *port = reinterpret_cast<HttpProxyPort *>(descp);
7804 NetProcessor::AcceptOptions net(make_net_accept_options(port, -1 /* nthreads */));
7805
7806 if (port->isSSL()) {
7807 action = sslNetProcessor.main_accept(reinterpret_cast<INKContInternal *>(contp), port->m_fd, net);
7808 } else {
7809 action = netProcessor.main_accept(reinterpret_cast<INKContInternal *>(contp), port->m_fd, net);
7810 }
7811
7812 return action ? TS_SUCCESS : TS_ERROR;
7813}
7814
7815TSReturnCode
7816TSPluginDescriptorAccept(TSCont contp)

Callers 2

PassthruListenFunction · 0.85

Calls 3

make_net_accept_optionsFunction · 0.85
isSSLMethod · 0.80
main_acceptMethod · 0.45