does OpenNETCF have a function that tells if active sync has a connection to my PC?

  • Thread starter Thread starter jayderk
  • Start date Start date
J

jayderk

Hello All,

does OpenNETCF smart framework have a function that tells if active sync has
a connection to my PC?
 
No, but you can check if Dns class can resolve PPP_PEER hostname. If so, the
device is in activesync session
 
Just check that Dns.GetHostByName("PPP_PEER") returns a non-null value and
does not throw an exception.
 
also,.. if you have a connection with active sync, your pc will act as
192.168.55.100 and your ppc will respond to 192.168.55.101. This is only
valid between your pc and ppc.

Regards

Floris Briolas
 
whoops,..

I forgot to mention: ONLY when connected trough usb!!! (perhaps alsom
serial)

Regards

Floris Briolas
 
Yes, but that's configurable and can be changed. Also if the 192.168.55.0
subnet is in use, ActiveSync will choose a diferent address
 
Back
Top