• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/samples/console/

Lines Matching refs:ftp

2392 #include "wx/protocol/ftp.h"
2394 static wxFTP ftp;
2411 static const wxChar *hostname = _T("ftp.wxwidgets.org");
2420 ftp.SetUser(user);
2426 ftp.SetPassword(password);
2431 if ( !ftp.Connect(hostname) )
2440 hostname, ftp.Pwd().c_str());
2441 ftp.Close();
2450 wxFTP ftp;
2451 static const wxChar *hostname = _T("ftp.eudora.com");
2452 if ( !ftp.Connect(hostname) )
2459 wxInputStream *in = ftp.GetInputStream(filename);
2490 if ( !ftp.ChDir(directory) )
2495 wxPrintf(_T("Current directory is '%s'\n"), ftp.Pwd().c_str());
2499 if ( !ftp.GetFilesList(files) )
2505 wxPrintf(_T("Brief list of files under '%s':\n"), ftp.Pwd().c_str());
2514 if ( !ftp.GetDirList(files) )
2520 wxPrintf(_T("Detailed list of files under '%s':\n"), ftp.Pwd().c_str());
2529 if ( !ftp.ChDir(_T("..")) )
2534 wxPrintf(_T("Current directory is '%s'\n"), ftp.Pwd().c_str());
2542 wxInputStream *in = ftp.GetInputStream(filename);
2572 if ( !ftp.ChDir(directory) )
2577 wxPrintf(_T("Current directory is '%s'\n"), ftp.Pwd().c_str());
2579 if ( ftp.FileExists(filename) )
2581 int size = ftp.GetFileSize(filename);
2597 if ( ftp.SendCommand(_T("STAT")) != '2' )
2603 wxPrintf(_T("STAT returned:\n\n%s\n"), ftp.GetLastResult().c_str());
2606 if ( ftp.SendCommand(_T("HELP SITE")) != '2' )
2613 ftp.GetLastResult().c_str());
2642 if ( !ftp.GetList(files, wildcard, start == _T("LIST")) )
2649 start.c_str(), wildcard.c_str(), ftp.Pwd().c_str());
2660 wxChar ch = ftp.SendCommand(buf);
2667 wxPrintf(_T(", server reply:\n%s\n\n"), ftp.GetLastResult().c_str());
2681 wxOutputStream *out = ftp.GetOutputStream(file1);
2690 if ( ftp.SendCommand(wxString(_T("STAT ")) + file1) != '2' )
2697 file1, ftp.GetLastResult().c_str());
2700 out = ftp.GetOutputStream(file2);