473,756 Members | 9,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detecting network connectivity in .net CFv2 - the old chestnut!

Ok, I know this has been asked hundreds of times before (though for .net CF
1.0), but I want to detect when wired and/or wireless connections are made
or broken from within the .net CF 2.0 (the physical connection).

I have done something similar in 1.0 using ConnectionManag er which would
connect if a connection was available and throw me an event when that
connection died, but is there anything new in the new framework?

I have looked at such classes as System.Net.Netw orkInformation. NetworkChange
and System.Net.Netw orkInformation. NetworkInterfac e, but none of these seem
to be supported on CF - have I missed some or is this still missing for
mobile development?

Thanks.
Jan 3 '06 #1
2 1826
There isn't anything in the .NETCF to specifically address this scenario, on
Windows Mobile you can continue to use the ConnectionManag er APIs for this
purpose.

Peter

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

"Martin Robins" <so***@noaddres s.spam> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Ok, I know this has been asked hundreds of times before (though for .net
CF 1.0), but I want to detect when wired and/or wireless connections are
made or broken from within the .net CF 2.0 (the physical connection).

I have done something similar in 1.0 using ConnectionManag er which would
connect if a connection was available and throw me an event when that
connection died, but is there anything new in the new framework?

I have looked at such classes as
System.Net.Netw orkInformation. NetworkChange and
System.Net.Netw orkInformation. NetworkInterfac e, but none of these seem to
be supported on CF - have I missed some or is this still missing for
mobile development?

Thanks.

Jan 3 '06 #2
Thanks; was hoping there might be something new but there you go!

In the mean time, is there any way to programatically cater for
authentication across network file shares instead of having the OS dialog
pop up; I haven't been able to find anything for this either.

Martin.

"Peter Foot [MVP]" <fe******@nospa m-inthehand.com> wrote in message
news:ue******** ******@TK2MSFTN GP09.phx.gbl...
There isn't anything in the .NETCF to specifically address this scenario,
on Windows Mobile you can continue to use the ConnectionManag er APIs for
this purpose.

Peter

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

"Martin Robins" <so***@noaddres s.spam> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Ok, I know this has been asked hundreds of times before (though for .net
CF 1.0), but I want to detect when wired and/or wireless connections are
made or broken from within the .net CF 2.0 (the physical connection).

I have done something similar in 1.0 using ConnectionManag er which would
connect if a connection was available and throw me an event when that
connection died, but is there anything new in the new framework?

I have looked at such classes as
System.Net.Netw orkInformation. NetworkChange and
System.Net.Netw orkInformation. NetworkInterfac e, but none of these seem to
be supported on CF - have I missed some or is this still missing for
mobile development?

Thanks.


Jan 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
18505
by: Michael Kennedy [UB] | last post by:
Hi, I have a project using the TcpClient and its associated NetworkStream. Everything works well except for one condition which I haven't found any information about dealing with: How do I detected when the socket connection was closed on the server-side? That is, if my client connects to the server and everything is initialized
10
6045
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network computers cannot access the database. The message is...
14
9748
by: David W. Fenton | last post by:
I'm no stranger to this error message, but I have a client who is experiencing it, but, fortunately, without any actual data corruption, and it's driving them made. Their inability to grasp that the cause is fundamentally a networking problem is also making me pull my hair out. Some history: The network is composed of five computers dating back to 1995, each purchased one at a time, and each having a different OS, etc. Until
2
1663
by: Jerry Camel | last post by:
In VB .Net, is there a quick and easy way to determine if the network cable is unplugged? Without having to wait for a network access timeout? Thanks. Jerry
2
1456
by: Pete | last post by:
I've got a backend database which is a replica of a design master and is on the local drive (C:\). The database which it synchronises to is on a network server. What does it do: It's a way in which users can take their laptops away and still have local access to the database without being on the network drive.
8
3031
by: BJ | last post by:
Problem: How can I code up a client side process to detect if the network is available? Synopsis: I am writing ASP.NET input forms for a Panasonic Tuff book. The users will be walking around the plant with a wireless connection. There are some pockets of non-connectivity. I've been tasked with disabling the submit button on the form if the network is unavailable. Possible solution: I can instantiate a timed process (VB.NET 2.0
6
43854
cjbrx3115
by: cjbrx3115 | last post by:
Well, to start I just got Windows Vista a few months ago. It works great, but the trouble came when I decided to connect all of my computers - XP Home, XP Professional and Vista - to a home network. I have a broadband connection that connects into my wireless router, and the Vista connects, wired, through that router. My ethernet printer also connects through that router. I have 2 wireless computers, an XP Home and XP Professional, that connect...
0
1062
by: blaine | last post by:
Hey everyone, I was hoping to see some people out on the python list that are familiar with MDP (Modular Toolkit for Data Processing - http://mdp-toolkit.sourceforge.net/)? I am wanting to develop a very simple feed forward network. This network would consist of a few input neurons, some hidden neurons, and a few output neurons. There is no learning involved. This network is being used as a gene selection network in a genetic...
0
945
by: felciano | last post by:
Hi -- Is there a clean pythonic way to check for network connectivity? I have a script that needs to run periodically on a laptop to create a local cache of some network files. I would like it to fail gracefully when disconnected, as well as issue a warning if it hasn't been able to connect for X minutes / hours. I currently just use try / except to catch the network errors when the first call times out, but the timeout takes a while,...
0
9482
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9292
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9901
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8733
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7282
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5322
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3827
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3392
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2694
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.