Parse a port descriptor for the proxy.config.http.server_ports descriptor format.
| 7784 | |
| 7785 | // Parse a port descriptor for the proxy.config.http.server_ports descriptor format. |
| 7786 | TSPortDescriptor |
| 7787 | TSPortDescriptorParse(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 | |
| 7799 | TSReturnCode |
| 7800 | TSPortDescriptorAccept(TSPortDescriptor descp, TSCont contp) |