CodeGuru
Earthweb Search
Forums Wireless Jars Gamelan Developer.com
CodeGuru Navigation
RSS Feeds

RSSAll

RSSVC++/C++

RSS.NET/C#

RSSVB

See more EarthWeb Network feeds

follow us on Twitter

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

Become a Marketplace Partner

jobs.internet.com

internet.commerce
Partners & Affiliates
















Home >> Visual C++ / C++ >> Windows Programming >> CE >> Networking


FTP Client for Pocket PC
Rating: none

Waseem Anis (view profile)
November 24, 2000


(continued)




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

Tools:
Add www.codeguru.com to your favorites
Add www.codeguru.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed







RATE THIS ARTICLE:   Excellent  Very Good  Average  Below Average  Poor  

(You must be signed in to rank an article. Not a member? Click here to register)

Latest Comments:
GetFile never returns - spitla (07/14/2005)
FTP Client for Pocket PC - Legacy CodeGuru (12/01/2003)
GetFile don't work in Pocket PC 2002 - Legacy CodeGuru (10/16/2003)
InterConnect() with iPAQ Pocket PC 2002 - Legacy CodeGuru (06/29/2003)
FTPGetFile in Pocket PC 2002 - Legacy CodeGuru (04/29/2003)

View All Comments
Add a Comment:
Title:
Comment:
Pre-Formatted: Check this if you want the text to display with the formatting as typed (good for source code)



(You must be signed in to comment on an article. Not a member? Click here to register)