Establishing an FTP connection does not force the Windows Mobile OS to start a GPRS connection (when no connection of any type exists). Is there a way how to persuade the Rebex FTP component to connect via GPRS?

asked 14 Sep '10, 19:23

Rebex%20KB's gravatar image

Rebex KB ♦♦
258519
accept rate: 63%


No. Rebex FTP focuses solely on the client side of the FTP protocol. There is no built-in connection manager. Therefore we recommend a next solution.

To connect using a dial up connection from .NET CF on PocketPC, you can use Connection Manager functions such as ConnMgrEnumDestinations, ConnMgrEstablishConnection and ConnMgrReleaseConnection. Check out http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_cnmn_connection_manager.asp for details. There are no classes available for this in .NET CF, but it can be done quite easily using P/Invoke if you have some experience with this. The following blog post covers this in detail and also contains some C# code: http://blogs.msdn.com/anthonywong/archive/2006/03/13/550686.aspx.

Another solution is using the Smart Device Framework by OpenNETCF.org that contains a wrapper class for the Connection Manager: http://www.opennetcf.com/sdf It is free for any commercial or noncommercial purpose up to the version 1.4. It also includes the source code, so you might either use it as is or as a reference for your own implementation if you prefer.

link

answered 15 Sep '10, 08:32

Rebex%20KB's gravatar image

Rebex KB ♦♦
258519
accept rate: 63%

edited 27 Jun '11, 15:38

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152
×5
×3

Asked: 14 Sep '10, 19:23

Seen: 1,125 times

Last updated: 27 Jun '11, 15:38