Configurable terminators for normal protocols

r1973 | dcl | 2007-05-21 17:57:33 +1000 (Mon, 21 May 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-05-21 17:57:33 +10:00
parent 4e5ea6a61c
commit 163b03b557
2 changed files with 177 additions and 16 deletions

View File

@@ -48,6 +48,8 @@ struct __async_txn {
struct __async_protocol {
pObjectDescriptor pDes;
char* protocolName;
char *sendTerminator;
char *replyTerminator;
void* privateData;
int (* sendCommand)(pAsyncProtocol p, pAsyncTxn txn);
int (* handleInput)(pAsyncProtocol p, pAsyncTxn txn, int ch);