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

Function InterceptGetOtherSide

example/plugins/c-api/intercept/intercept.cc:156–160  ·  view source on GitHub ↗

Return the InterceptIO control block that doesn't own the given VC.

Source from the content-addressed store, hash-verified

154
155// Return the InterceptIO control block that doesn't own the given VC.
156static InterceptIO *
157InterceptGetOtherSide(InterceptState *istate, TSVConn vc)
158{
159 return (istate->client.vc == vc) ? &istate->server : &istate->client;
160}
161
162// Evaluates to a human-readable name for a TSVConn in the
163// intercept proxy state.

Callers 1

InterceptInterceptHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected