software you can take with you

How close a data connection?

Last post 07-08-2010 3:22 PM by PeterFoot. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-07-2010 10:00 AM

    How close a data connection?

    It is not clear to me how close a phone data connection (that is GPRS/EDGE) using InTheHand.WindowsMobile.Net

    I open the data connection calling using ConnectionManager.EstablishConnection and everything works fine but I did not found a way to close it.

    I tried ConnectionManager.ReleaseConnnection but it did not worked. Then I tried WirelessManager.Phone.RadioState := WirelessState.Off  but this switch off all the phone function not the data connection only (that is the voice service too).

    Am I missing something?

     

     

     

  • 07-08-2010 3:22 PM In reply to

    Re: How close a data connection?

    Connection Manager doesn't have the ability to terminate a data connection - it has the Release method which notifies the system you no longer need a connection but this rarely physically disconnects because the system caches the connection for use by other applications. A GPRS connection will go into a low power sleep mode and will not cost anything to keep open but idle. It is possible to disconnect the underlying RemoteAccess connection but normally you should let the system decide when to disconnect. See the InTheHand.Net.RemoteAccess namespace for classes to work with the Remote Access (RAS) connections.

     

    Peter

Page 1 of 1 (2 items)
Copyright © 2001-2013 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting