#include <stdlib.h>
#include "wx/string.h"
#include "wx/utils.h"
-// #include "wx/data.h"
-#define WXSOCK_INTERNAL
#include "wx/sckaddr.h"
-#undef WXSOCK_INTERNAL
#include "wx/socket.h"
#include "wx/url.h"
#include "wx/sckstrm.h"
#define FTP_BSIZE 1024
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxFTP, wxProtocol)
IMPLEMENT_PROTOCOL(wxFTP, wxT("ftp"), wxT("ftp"), TRUE)
-#endif
////////////////////////////////////////////////////////////////
////// wxFTP constructor and destructor ////////////////////////
m_passwd += wxGetHostName();
SetNotify(0);
- SetFlags(NONE);
+ SetFlags(wxSOCKET_NONE);
}
wxFTP::~wxFTP()
m_lastError = wxPROTO_STREAMING;
return FALSE;
}
- if (m_connected)
+ if (IsConnected())
SendCommand(wxString(wxT("QUIT")), '2');
+
return wxSocketClient::Close();
}
in_stream->m_ftpsize = wxAtoi(WXSTRINGCAST str_size);
}
- sock->SetFlags(WAITALL);
+ sock->SetFlags(wxSOCKET_WAITALL);
return in_stream;
}