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

Function stats_dostuff

plugins/stats_over_http/stats_over_http.cc:671–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671static int
672stats_dostuff(TSCont contp, TSEvent event, void *edata)
673{
674 stats_state *my_state = static_cast<stats_state *>(TSContDataGet(contp));
675 if (event == TS_EVENT_NET_ACCEPT) {
676 my_state->net_vc = (TSVConn)edata;
677 stats_process_accept(contp, my_state);
678 } else if (edata == my_state->read_vio) {
679 stats_process_read(contp, event, my_state);
680 } else if (edata == my_state->write_vio) {
681 stats_process_write(contp, event, my_state);
682 } else {
683 TSReleaseAssert(!"Unexpected Event");
684 }
685 return 0;
686}
687
688static int
689stats_origin(TSCont contp, TSEvent /* event ATS_UNUSED */, void *edata)

Callers

nothing calls this directly

Calls 4

TSContDataGetFunction · 0.85
stats_process_acceptFunction · 0.85
stats_process_readFunction · 0.85
stats_process_writeFunction · 0.85

Tested by

no test coverage detected