Added the peer's socket information to the connection structure. The

information is passed along during the initialization of the structure.
This commit is contained in:
Robert James Kaes committed 2002-05-23 18:23:29 +00:00
1 parent 9d0c65ad86
commit 09b1b9b925
2 files changed
+20 -5

No files matched your search

+9 -2
View File
@@ -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.
*
@@ -43,6 +43,12 @@ struct conn_s {
/* A Content-Length value from the remote server */
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.
*/
@@ -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