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

Function synclient_txn_send_request_to_vc

src/api/InkAPITest.cc:597–610  ·  view source on GitHub ↗

This can be used to send a request to a specific VC */

Source from the content-addressed store, hash-verified

595
596/* This can be used to send a request to a specific VC */
597static int
598synclient_txn_send_request_to_vc(ClientTxn *txn, char *request, TSVConn vc)
599{
600 TSCont cont;
601 TSAssert(txn->magic == MAGIC_ALIVE);
602 txn->request = ats_strdup(request);
603 SET_TEST_HANDLER(txn->current_handler, synclient_txn_connect_handler);
604
605 cont = TSContCreate(synclient_txn_main_handler, TSMutexCreate());
606 TSContDataSet(cont, txn);
607
608 TSContCall(cont, TS_EVENT_NET_CONNECT, vc);
609 return 1;
610}
611
612static int
613synclient_txn_read_response(TSCont contp)

Calls 4

TSContCreateFunction · 0.85
TSMutexCreateFunction · 0.85
TSContDataSetFunction · 0.85
TSContCallFunction · 0.85

Tested by

no test coverage detected