summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-11-21 01:00:09 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-11-21 01:00:09 +0000
commitbc8c3ff39979fc297845d09dbd69e16d3feeaf0e (patch)
tree2e6da5401d13e15c89b6271e941565cbb5ff2084
parent90ee7e01ca432566a2396d6c5b03f93ab0d8dbb8 (diff)
Include the protocol variables in the conn_s structure.
-rw-r--r--src/conns.c4
-rw-r--r--src/conns.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/conns.c b/src/conns.c
index daf5ad3..8c0767a 100644
--- a/src/conns.c
+++ b/src/conns.c
@@ -1,4 +1,4 @@
-/* $Id: conns.c,v 1.3 2001-10-25 16:58:09 rjkaes Exp $
+/* $Id: conns.c,v 1.4 2001-11-21 01:00:08 rjkaes Exp $
*
* Create and free the connection structure. One day there could be
* other connnection related tasks put here, but for now the header
@@ -37,6 +37,8 @@ void initialize_conn(struct conn_s *connptr)
connptr->ssl = FALSE;
connptr->upstream = FALSE;
+ connptr->protocol.major = connptr->protocol.minor = 0;
+
update_stats(STAT_OPEN);
}
diff --git a/src/conns.h b/src/conns.h
index 123a075..3b9a7d8 100644
--- a/src/conns.h
+++ b/src/conns.h
@@ -1,4 +1,4 @@
-/* $Id: conns.h,v 1.3 2001-10-25 16:58:09 rjkaes Exp $
+/* $Id: conns.h,v 1.4 2001-11-21 01:00:09 rjkaes Exp $
*
* See 'conns.c' for a detailed description.
*
@@ -30,6 +30,10 @@ struct conn_s {
bool_t ssl;
bool_t upstream;
bool_t send_message;
+ struct {
+ unsigned short int major;
+ unsigned short int minor;
+ } protocol;
};
/*