#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"
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;
}