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

Method main_handler

src/iocore/net/NetVCTest.cc:350–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350int
351NetVCTest::main_handler(int event, void *data)
352{
353 if (event == NET_EVENT_ACCEPT) {
354 test_vc = static_cast<NetVConnection *>(data);
355 start_test();
356 return 0;
357 }
358
359 if (data == read_vio) {
360 read_handler(event);
361 } else if (data == write_vio) {
362 write_handler(event);
363 } else {
364 record_error("main: unknown event");
365 }
366
367 return 0;
368}
369
370NetTestDriver::NetTestDriver() : Continuation(nullptr) {}
371

Callers

nothing calls this directly

Calls 1

start_testFunction · 0.85

Tested by

no test coverage detected