X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc81d32f2bf8c159f3b1bf6ddaf62e6d77720209..ff7047fde523c91a0065a6f1028ee87a7cba5a88:/docs/latex/wx/ftp.tex?ds=sidebyside diff --git a/docs/latex/wx/ftp.tex b/docs/latex/wx/ftp.tex index c8a7156205..077787ba4e 100644 --- a/docs/latex/wx/ftp.tex +++ b/docs/latex/wx/ftp.tex @@ -44,7 +44,7 @@ Example of using wxFTP for file downloading: } else { - size_t size = in->StreamSize(); + size_t size = in->GetSize(); char *data = new char[size]; if ( !in->Read(data, size) ) { @@ -365,9 +365,9 @@ send new commands without reconnecting. ftp.ChDir("a_directory"); in_stream = ftp.GetInputStream("a_file_to_get"); - data = new char[in_stream->StreamSize()]; + data = new char[in_stream->GetSize()]; - in_stream->Read(data, in_stream->StreamSize()); + in_stream->Read(data, in_stream->GetSize()); if (in_stream->LastError() != wxStream_NOERROR) { // Do something. }