Copy the protocol name and adjust the kill code in asyncprotocol

This commit is contained in:
Douglas Clowes
2014-08-22 17:10:31 +10:00
parent 6388f7e003
commit f216ec83c5
2 changed files with 16 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ struct __async_txn {
int inp_idx; /**< index of next character (number already received) */
AsyncTxnHandler handleResponse; /**< Txn response handler of command sender */
void *proto_private; /**< Protocol Private structure */
void (*kill_private) (struct __async_txn *pTxn); /**< if it needs killing */
void (*kill_private) (pAsyncTxn pTxn); /**< if it needs killing */
void *cntx; /**< opaque context used by command sender */
/* The cntx field may be used by protocol handler from sendCommand
* as long as it is restored when response is complete