Hi Rolf,
I noticed there is a nice class hidden in HTTPServer files - HTTPLog. It seems to be designed for logging HTTP activity. I tried using it, and apparently it got behind from the rest of HTTPServer code, so it does not compile with problems in line 13: "struct ip_addr ip = con->pcb()->remote_ip;". I did some code digging, and the simplest fix I came up with was to:
1. Change the offending line to "struct ip_addr ip = con->get_remote_ip();"
2. Add the following function to TCPConnection.h file:
struct ip_addr get_remote_ip() const {
return _ipaddr;
}
Is that the way to go? If yes, could you include the proposed changes into SVN?
Hi Rolf,
I noticed there is a nice class hidden in HTTPServer files - HTTPLog. It seems to be designed for logging HTTP activity. I tried using it, and apparently it got behind from the rest of HTTPServer code, so it does not compile with problems in line 13: "struct ip_addr ip = con->pcb()->remote_ip;". I did some code digging, and the simplest fix I came up with was to:
1. Change the offending line to "struct ip_addr ip = con->get_remote_ip();"
2. Add the following function to TCPConnection.h file:
Is that the way to go? If yes, could you include the proposed changes into SVN?