#pragma hdrstop
#endif
+#if wxUSE_SOCKETS
+
#ifndef __MWERKS__
#include <memory.h>
#endif
wxInputFTPStream(wxFTP *ftp_clt, wxSocketBase *sock)
: wxSocketInputStream(*sock), m_ftp(ftp_clt) {}
- size_t StreamSize() { return m_ftpsize; }
+ size_t StreamSize() const { return m_ftpsize; }
virtual ~wxInputFTPStream(void)
{
if (LastError() != wxStream_NOERROR)
pos_size = m_lastResult.Index('(');
if (pos_size != wxNOT_FOUND) {
- wxString str_size = m_lastResult(pos_size, m_lastResult.Index(')'));
+ wxString str_size = m_lastResult(pos_size+1, m_lastResult.Index(')')-1);
in_stream->m_ftpsize = atoi(WXSTRINGCAST str_size);
}
return NULL;
}
+ sock->SetEventHandler(*GetNextHandler(), m_id);
+ sock->Notify(m_notifyme);
+ sock->SetNotify(m_neededreq);
+
return file_list;
}
+#endif
+ // wxUSE_SOCKETS