diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-05-23 18:23:29 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-05-23 18:23:29 +0000 |
commit | 09b1b9b9253cd01f3484ba4a78fd260220313ae1 (patch) | |
tree | 35190c93f84387acfdccb37e2a8a0f48b7ef787e /src/conns.h | |
parent | 9d0c65ad86112822175ddbf822e1827ca32cf24d (diff) |
Added the peer's socket information to the connection structure. The
information is passed along during the initialization of the structure.
Diffstat (limited to 'src/conns.h')
-rw-r--r-- | src/conns.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/conns.h b/src/conns.h index 9fd9eea..59ec8e9 100644 --- a/src/conns.h +++ b/src/conns.h @@ -1,4 +1,4 @@ -/* $Id: conns.h,v 1.9 2002-04-18 21:43:53 rjkaes Exp $ +/* $Id: conns.h,v 1.10 2002-05-23 18:23:29 rjkaes Exp $ * * See 'conns.c' for a detailed description. * @@ -44,6 +44,12 @@ struct conn_s { long remote_content_length; /* + * Store the client's IP and hostname information + */ + char* client_ip_addr; + char* client_string_addr; + + /* * Store the incoming request's HTTP protocol. */ struct { @@ -55,7 +61,8 @@ struct conn_s { /* * Functions for the creation and destruction of a connection structure. */ -extern struct conn_s* initialize_conn(int client_fd); +extern struct conn_s* initialize_conn(int client_fd, const char* ipaddr, + const char* string_addr); extern void destroy_conn(struct conn_s *connptr); #endif |