PC Review


Reply
Thread Tools Rate Thread

How to create a "EnsureNetwork()" method ?

 
 
Steve B.
Guest
Posts: n/a
 
      4th Oct 2005
Hi,

I'd like some help or good practice in order to make a "EnsureNetwork()"
method.

This method should either check there is network available (typically WIFI)
or connect GPRS connexion (the one configured as default connexion on the
device).

I made some tests, and on my device, a web service call automatically
connect the default connexion. A Sql Ce merge replication synchronize()
method does not. That's why I'd like to ensure the availability of any
network.

I'm also quite confused about networks, destinations and connexions... and I
would appreciate some explanations.

Thanks in advance.
Steve


 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      5th Oct 2005
You'll have to define what device you're running on. If it's a Windows
Mobile device, you can use the Connection Manager, for which there is a
wrapper in OpenNETCF, www.opennetcf.org, to establish a connection, etc.

If you're running on some Windows CE (generic) device, there is no OS
support for ensuring that a network connection exists. You'll have to
figure that out yourself, with knowledge of what connection types are
possible, etc.

Paul T.

"Steve B." <(E-Mail Removed)_com_and_msn> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'd like some help or good practice in order to make a "EnsureNetwork()"
> method.
>
> This method should either check there is network available (typically
> WIFI) or connect GPRS connexion (the one configured as default connexion
> on the device).
>
> I made some tests, and on my device, a web service call automatically
> connect the default connexion. A Sql Ce merge replication synchronize()
> method does not. That's why I'd like to ensure the availability of any
> network.
>
> I'm also quite confused about networks, destinations and connexions... and
> I would appreciate some explanations.
>
> Thanks in advance.
> Steve
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to detect if I use "AES" or "TKIP" as encryption method for "WPA-PSK"? Client or AP requirement? Kevin McNeal Windows XP Networking 2 27th Feb 2009 11:30 AM
can I create a "next chapter" advance method? =?Utf-8?B?cHBldHRv?= Microsoft Powerpoint 3 30th Sep 2007 10:25 PM
What is Error "Method "Paste" of object "_Worksheet" failed? =?Utf-8?B?dmF0?= Microsoft Excel Programming 7 17th Feb 2006 09:05 PM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej Microsoft ASP .NET 0 4th Jun 2004 09:55 PM
Howto customize "Add Method" wizard on "Add Method" menu of Class View? Bill Smarty Microsoft Dot NET Framework 0 13th Jan 2004 07:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:25 PM.