473,382 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 ConnectionManager 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.NetworkInformation.NetworkChange
and System.Net.NetworkInformation.NetworkInterface, 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 1810
There isn't anything in the .NETCF to specifically address this scenario, on
Windows Mobile you can continue to use the ConnectionManager APIs for this
purpose.

Peter

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

"Martin Robins" <so***@noaddress.spam> wrote in message
news:%2****************@TK2MSFTNGP11.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 ConnectionManager 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.NetworkInformation.NetworkChange and
System.Net.NetworkInformation.NetworkInterface, 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******@nospam-inthehand.com> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
There isn't anything in the .NETCF to specifically address this scenario,
on Windows Mobile you can continue to use the ConnectionManager APIs for
this purpose.

Peter

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

"Martin Robins" <so***@noaddress.spam> wrote in message
news:%2****************@TK2MSFTNGP11.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 ConnectionManager 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.NetworkInformation.NetworkChange and
System.Net.NetworkInformation.NetworkInterface, 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
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...
10
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...
14
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...
2
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
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...
8
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...
6
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....
0
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...
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.