Include the protocol variables in the conn_s structure.
This commit is contained in:
parent
90ee7e01ca
commit
bc8c3ff399
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user