| 4898 | } |
| 4899 | |
| 4900 | TSReturnCode |
| 4901 | TSHttpTxnParentProxyGet(TSHttpTxn txnp, const char **hostname, int *port) |
| 4902 | { |
| 4903 | sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS); |
| 4904 | |
| 4905 | HttpSM *sm = reinterpret_cast<HttpSM *>(txnp); |
| 4906 | |
| 4907 | *hostname = sm->t_state.api_info.parent_proxy_name; |
| 4908 | *port = sm->t_state.api_info.parent_proxy_port; |
| 4909 | |
| 4910 | return TS_SUCCESS; |
| 4911 | } |
| 4912 | |
| 4913 | void |
| 4914 | TSHttpTxnParentProxySet(TSHttpTxn txnp, const char *hostname, int port) |