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

Function TSHostLookupTrampoline

src/api/InkAPI.cc:6130–6146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6128};
6129
6130static int
6131TSHostLookupTrampoline(TSCont contp, TSEvent ev, void *data)
6132{
6133 auto c = reinterpret_cast<INKContInternal *>(contp);
6134 // Set up the local context.
6135 TSResolveInfo ri;
6136 ri.record = static_cast<HostDBRecord *>(data);
6137 if (ri.record) {
6138 ri.record->rr_info()[0].data.ip.toSockAddr(ri.addr);
6139 }
6140 auto *target = reinterpret_cast<INKContInternal *>(c->mdata);
6141 // Deliver the message.
6142 target->handleEvent(ev, &ri);
6143 // Cleanup.
6144 c->destroy();
6145 return TS_SUCCESS;
6146};
6147
6148TSAction
6149TSHostLookup(TSCont contp, const char *hostname, size_t namelen)

Callers

nothing calls this directly

Calls 4

toSockAddrMethod · 0.80
rr_infoMethod · 0.80
handleEventMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected