Include the protocol variables in the conn_s structure.
This commit is contained in:
1 parent
90ee7e01ca
commit
bc8c3ff399
2 files changed
+8
-2
No files matched your search
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+5
-1
@@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user