Detecting changing IP/network connection closed in serversocket

wl

Well-Known Member
Licensed User
Longtime User
Hello,

I'm running a server (on port 8080) in a service.

All is working fine: I can detected the IP my device is using (by calling GetMyIP after the Listen method).

But how can I detect my network connection is closed (possibly followed by another IP) ? Eg: when switching fro GPRS to Wifi (or vica versa) or just to detect when the networkconnection is down.

It seems neither the Stream_Error or Stream_Terminated is called

Thanks,

Wim
 

wl

Well-Known Member
Licensed User
Longtime User
Thanks Erel, helpful (as usual).

The description seems to be (see below). What are the possible values of NetworkType or State ? Is this listed somewhere ?

Thanks !

Phone.xml - version 1.71

PhoneEvents : Process object

PhoneEvents_ConnectivityChanged

Event

ConnectivityChanged (NetworkType As String, State As String, Intent As Intent)
 
Upvote 0

wl

Well-Known Member
Licensed User
Longtime User
Thanks !

Still struggling a bit on where to find all information
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…