+ in_stream = new wxInputFTPStream(this, sock);
+
+ pos_size = m_lastResult.Index(_T('('));
+ if (pos_size != wxNOT_FOUND) {
+ wxString str_size = m_lastResult(pos_size+1, m_lastResult.Index(_T(')'))-1);
+
+ in_stream->m_ftpsize = wxAtoi(WXSTRINGCAST str_size);
+ }
+ sock->SetFlags(WAITALL);
+
+ return in_stream;