Include the protocol variables in the conn_s structure.

This commit is contained in:
Robert James Kaes 2001-11-21 01:00:09 +00:00
parent 90ee7e01ca
commit bc8c3ff399
2 changed files with 8 additions and 2 deletions

View File

@ -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 * Create and free the connection structure. One day there could be
* other connnection related tasks put here, but for now the header * 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->ssl = FALSE;
connptr->upstream = FALSE; connptr->upstream = FALSE;
connptr->protocol.major = connptr->protocol.minor = 0;
update_stats(STAT_OPEN); update_stats(STAT_OPEN);
} }

View File

@ -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. * See 'conns.c' for a detailed description.
* *
@ -30,6 +30,10 @@ struct conn_s {
bool_t ssl; bool_t ssl;
bool_t upstream; bool_t upstream;
bool_t send_message; bool_t send_message;
struct {
unsigned short int major;
unsigned short int minor;
} protocol;
}; };
/* /*