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

Function synserver_start

src/api/InkAPITest.cc:840–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840static int
841synserver_start(SocketServer *s)
842{
843 TSAssert(s->magic == MAGIC_ALIVE);
844 TSAssert(s->accept_action == nullptr);
845
846 if (s->accept_port != SYNSERVER_DUMMY_PORT) {
847 TSAssert(s->accept_port > 0);
848 TSAssert(s->accept_port < INT16_MAX);
849
850 s->accept_action = TSNetAccept(s->accept_cont, s->accept_port, AF_INET, 0);
851 }
852
853 return 1;
854}
855
856static int
857synserver_stop(SocketServer *s)

Calls 1

TSNetAcceptFunction · 0.85

Tested by

no test coverage detected