git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9046
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class wxInputFTPStream : public wxSocketInputStream
{
public:
class wxInputFTPStream : public wxSocketInputStream
{
public:
- wxInputFTPStream(wxFTP *ftp_clt, wxSocketBase *sock)
- : wxSocketInputStream(*sock), m_ftp(ftp_clt)
+ wxInputFTPStream(wxFTP *ftp, wxSocketBase *sock)
+ : wxSocketInputStream(*sock)
+ m_ftp = ftp;
+
+ // FIXME make the timeout configurable
+
+ // set a shorter than default timeout
+ m_i_socket->SetTimeout(60); // 1 minute
}
size_t GetSize() const { return m_ftpsize; }
}
size_t GetSize() const { return m_ftpsize; }