summaryrefslogtreecommitdiffstats
path: root/tcps_sess.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcps_sess.h')
-rw-r--r--tcps_sess.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcps_sess.h b/tcps_sess.h
index 2bdee80b..0433fdfb 100644
--- a/tcps_sess.h
+++ b/tcps_sess.h
@@ -41,6 +41,11 @@ typedef struct tcps_sess_s {
int sock;
int iMsg; /* index of next char to store in msg */
int bAtStrtOfFram; /* are we at the very beginning of a new frame? */
+ enum {
+ eAtStrtFram,
+ eInOctetCnt,
+ eInMsg
+ } inputState; /* our current state */
int iOctetsRemain; /* Number of Octets remaining in message */
TCPFRAMINGMODE eFraming;
char msg[MAXLINE+1];