table of contents
TSHOSTLOOKUPRESULTADDRGET(3ts) | Apache Traffic Server | TSHOSTLOOKUPRESULTADDRGET(3ts) |
NAME¶
TSHostLookupResultAddrGet - TSHostLookupResultAddrGet API function
SYNOPSIS¶
#include <ts/ts.h>
DESCRIPTION¶
Retrieves the pointer to a sockaddr of a the given lookup_result from a previous call to TSHostLookup().
For example:
int handler(TSCont contp, TSEvent event, void *edata) {
if (event == TS_EVENT_HOST_LOOKUP) {
const sockaddr *addr = TSHostLookupResultAddrGet(static_cast<TSHostLookupResult>(edata));
// TODO Add logic here.
} }
COPYRIGHT¶
2024, dev@trafficserver.apache.org
January 6, 2024 | 9.2 |