Another Connection Status Question

  • Thread starter Thread starter Gabacho D Sanchez
  • Start date Start date
G

Gabacho D Sanchez

Like a couple people have asked previously, I need to detect whether or not
I have a connection. Unlike the code at http://www.businessanyplace.net/?
p=code#checkconnec (which simply tests a web address), I need to check for
an actual connection to the network (in my case via a WAP). Having an
external connection is not important in my case because I just want data to
stay in my local network. Ruediger's solution seems good, but I would like
to not use the OpennetCF if I don't have to. Is there any other way to
simply check for a "link"?
I want to write a quick little app that has an alarm, wakes up, and fires
off some Wake-On-Lan packets. A little app run from my pocket pc to make
sure my network wakes up with me :) Problem is that a connection takes a
while to establish after the device has been woken up by the alarm. I just
need to poll the state for a little bit until I can determine whether or
not I'm connected.

Thanks,
Bill

And BTW, Ruediger, are you the Ruediger that sometimes attends NANOG
conferences? Maybe thats just a more common name than I think ;)
 
Use Connection Manager; you can call connect asyncronously and then poll
until the connection status is connected or aborted.

I know you did not want to include the OpenNETCF SDF, but you can just pull
out the source for ConnectionManager and MarshalEx and it will work.
 
Bill,
I want to write a quick little app that has an alarm, wakes up, and fires
off some Wake-On-Lan packets. A little app run from my pocket pc to make
sure my network wakes up with me :)

you can use something like:

CeRunAppAtEvent("\\Programm Files \\WakeupApp\MyWakeupApp.exe" ,
NOTIFICATION_EVENT_WAKEUP")
and do some Pings in your WakeupApp.

As Martin mentioned the source for OpenNETCF is availeble and the source for
'pinging' from CF too.Therefore You can use seperated parts of the great
OpenNETCF-Lib in your sources.
And BTW, Ruediger, are you the Ruediger that sometimes attends NANOG
conferences? Maybe thats just a more common name than I think ;)

I'm a little bit confused.
There are not so much 'Ruediger's' here in the forum - so it must be me ???
Did You change the thread and the user name?
Anyway:
Ruediger is a very old german name. I believe nowadays noone will name his
sun Ruediger but in the sixties it was a common name :-)

Ruediger
 
Back
Top