| 7797 | } |
| 7798 | |
| 7799 | TSReturnCode |
| 7800 | TSPortDescriptorAccept(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 | |
| 7815 | TSReturnCode |
| 7816 | TSPluginDescriptorAccept(TSCont contp) |