Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

Notification of network availability

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hari - 22 Mar 2007 07:44 GMT
Hi,

  Does pocketpc, windows mobile devices  notify network
availability?  I use a socket connection in my app which is torn-off
when i receive a phone call.  I need to establish a new socket
connection as and when the phone call ends and network channel gets
available. But how do i know that the 'network is now available'? Does
the platform notify that or do i have to keep polling until its
available? Please suggest.

Thanks,
Hari
Peter Foot [MVP] - 22 Mar 2007 09:17 GMT
If you are using Windows Mobile 5.0 you can use the SystemState class to
watch the PhoneActiveCallCount property. When this returns to 0 you can use
the device for data connections again.

Peter

Signature

Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

> Hi,
>
[quoted text clipped - 8 lines]
> Thanks,
> Hari
Hari - 22 Mar 2007 11:49 GMT
On Mar 22, 1:17 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
wrote:
> If you are using Windows Mobile 5.0 you can use the SystemState class to
> watch the PhoneActiveCallCount property. When this returns to 0 you can use
[quoted text clipped - 18 lines]
> > Thanks,
> > Hari

Hi Peter,

   Thanks a lot for the response. Currently i don't have a device.
I've to do that with the emulator. How can i simulate a call to the
emulator? Can you provide a sample app that uses SystemState class and
the PhoneActiveCallCount Property? And this class is contained in the
WM5.0, so i can't use this for PPC devices. Any other solution for
PPC?? Please suggest.

- Hari
Simon Hart - 28 Mar 2007 01:05 GMT
Monitor the IP address you are listening on using a worker-thread, maybe use
TAPI - if not targeting WM5.

It is not possible to receive a call via the emulator as it it a fake
network. You can however emulate an outgoing call.

Signature

Simon Hart
http://srhartone.blogspot.com

> On Mar 22, 1:17 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
> wrote:
[quoted text clipped - 31 lines]
>
> - Hari
Hari - 30 Mar 2007 08:12 GMT
> Monitor the IP address you are listening on using a worker-thread, maybe use
> TAPI - if not targeting WM5.
[quoted text clipped - 44 lines]
>
> > - Hari

Hi Simon,

>Monitor the IP address you are listening on using a worker-thread, maybe use
>TAPI - if not targeting WM5.
Can you please expand on monitoring IP? I found another post which
suggests using
http://www.innovativedss.com/forums/topic.asp?TOPIC_ID=68.
According to this, i need to keep sending url requests until i get a
response, which means that the network is available. But this is not
the effcient way.

Is there no way that i be notified of the network availability by the
OS ??

I can't use the PhoneActiveCallCount property of system state because,
there could be other reasons for the network disconnection, not only
the phone call.

Plz suggest a way out.

Thanks,
Hari

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.