added wxProtocolLog class for logging network requests/responses (closes #7464)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-07 13:58:39 +00:00
parent fdb45ab7e9
commit 0576cd9ebe
17 changed files with 253 additions and 22 deletions

View File

@@ -2455,6 +2455,7 @@ static void TestSocketClient()
#ifdef TEST_FTP
#include "wx/protocol/ftp.h"
#include "wx/protocol/log.h"
#define FTP_ANONYMOUS
@@ -4403,6 +4404,7 @@ int main(int argc, char **argv)
// wxFTP cannot be a static variable as its ctor needs to access
// wxWidgets internals after it has been initialized
ftp = new wxFTP;
ftp->SetLog(new wxProtocolLog(FTP_TRACE_MASK));
if ( TestFtpConnect() )
{