This can be used to send a request to a specific VC */
| 595 | |
| 596 | /* This can be used to send a request to a specific VC */ |
| 597 | static int |
| 598 | synclient_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 | |
| 612 | static int |
| 613 | synclient_txn_read_response(TSCont contp) |
no test coverage detected