User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.

    FTP Client for Pocket PC

    • 1

    Environment: Embedded Visual Tools, NT4 SP5, PocketPC

    The class FtpSockClient shows the functionality offered by the pocket PC device for socket data transfer. The class is single threaded, based on the blocking CSocket calls. You can use the class as:

    CftpSockClient	ftp;
    
    // Connect to some server
    BOOL bResult = ftp.ConnectToServer(_T("ftp.microsoft.com"), 
                                       21);
    if (!bResult)
    {
     AfxMessageBox(L"Error Connecting to Server");
     return;
    }
    
    // Try logging as anonymous
    bResult = ftp.UserLogin(L"anonymous", 
                            L"dummy@ftpdemo.com");
    
    if (!bResult )
    {
     AfxMessageBox(L"Error Connecting to Server");
     return;
    }
    
    CString csDir = ftp.GetWorkingDirectory();
    
    CString csFileList;
    
    ftp.GetFileList(csDir, csFileList);
    
    ftp. DisconnectFromServer();
    

    The class shows elementary functionality and is an attempt at sockets. Please do tell me the bugs that you find. Ill be glad to fix them...if I am able to.

    Downloads

    Download source - 7 Kb
    Download demo project - 52 Kb
    • 1

    IT Offers





    Partners

    • Partner With Us














    Top Authors


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers