471,570 Members | 936 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 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 1768
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Michael Kennedy [UB] | last post: by
14 posts views Thread by David W. Fenton | last post: by
2 posts views Thread by Jerry Camel | last post: by
reply views Thread by blaine | last post: by
reply views Thread by felciano | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

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.