Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handle network change
01-09-2015, 08:13 AM (This post was last modified: 01-09-2015 08:48 AM by SiMet.)
Post: #17
RE: Handle network change
Hello,
I started debug this problem.

I start whole Upnp using StartCombined.

When I get SubnetListChanged I call SetCurrentSubnet with new Subnet. Without this call my CP doesn't work.

When I added this SetCurrentSubnet call to SubnetListChange handler my ControlPoint started discover other devices after switch network.

However, Device is not working properly. Currently I see that DviServer::AddServer is called and port is correct. But ALIVE Notify messages has port 0. I've checked it and DviProtocolUpnp:AddInterface creates DviProtocolUpnpAdapterSpecificData with port value 0.

I do not know why is it working in that way.
If I could help, give you anything which could help you to reproduce this issue do not bother to ask.

Currently I'm testing it with iOS simulator. I reconnect my device from one WIFI network to another.

EDIT:
I found that in some cases (most of cases) DviProtocolUpnp::AddInterface is called before DviServer::AddServer and this cause that port in NOTIFY messages is 0 ( in DviServer::Port(TIpAddress aInterface) iServers.size() == 0 and 0 is returned )
Find all posts by this user


Messages In This Thread
Handle network change - SiMet - 19-06-2015, 01:10 PM
RE: Handle network change - simonc - 19-06-2015, 04:20 PM
RE: Handle network change - SiMet - 19-06-2015, 08:02 PM
RE: Handle network change - SiMet - 23-06-2015, 10:13 AM
RE: Handle network change - simonc - 23-06-2015, 12:36 PM
RE: Handle network change - SiMet - 23-06-2015, 03:03 PM
RE: Handle network change - SiMet - 24-06-2015, 02:11 PM
RE: Handle network change - simonc - 24-06-2015, 03:07 PM
RE: Handle network change - SiMet - 25-06-2015, 06:20 AM
RE: Handle network change - SiMet - 02-07-2015, 01:40 PM
RE: Handle network change - simonc - 02-07-2015, 04:22 PM
RE: Handle network change - simonc - 30-07-2015, 04:53 PM
RE: Handle network change - SiMet - 05-08-2015, 12:07 PM
RE: Handle network change - simonc - 07-08-2015, 01:51 PM
RE: Handle network change - SiMet - 11-08-2015, 12:15 PM
RE: Handle network change - SiMet - 20-08-2015, 12:33 PM
RE: Handle network change - SiMet - 01-09-2015 08:13 AM
RE: Handle network change - simonc - 11-09-2015, 03:16 PM
RE: Handle network change - SiMet - 01-09-2015, 12:29 PM
RE: Handle network change - simonc - 03-09-2015, 01:33 PM
RE: Handle network change - SiMet - 07-09-2015, 09:44 AM
RE: Handle network change - SiMet - 14-09-2015, 08:15 AM
RE: Handle network change - simonc - 28-09-2015, 02:12 PM

Forum Jump: