[CONPRO-1272] Disable the Multicast Action in Mobile Network Case. 98/183398/1
authorsenthil.gs@samsung.com <senthil.gs@samsung.com>
Tue, 3 Jul 2018 15:44:48 +0000 (21:14 +0530)
committerAmit KS <amit.s12@samsung.com>
Thu, 5 Jul 2018 06:40:59 +0000 (12:10 +0530)
commit86d240d07b233e58890079782754823eed0a88a0
tree3dca14c9c98dd4f2dce7bbc75a416932edb73d4b
parent65d87efa4b2798f96978b5d600f320b228f3479f
[CONPRO-1272] Disable the Multicast Action in Mobile Network Case.

Starting multicast server on all identified interfaces results in resource loss as many of identified interfaces may not have Multicast capability. It make sense to start multicast server on only active wifi connected interface for android platform.

This patch handles -
1. Create UDP sockets(Unicast and Multicast) and join multicast group only when there on active WiFi connection.
2. Whenever the WiFi connection comes up, UDP sockets will be closed, created, and joined to multicast group.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/296
(cherry picked from commit ce73d5846ecb99fb04e87860b94afbaeff0ddcb4)

Change-Id: Ib3586d77d3c0e96c990e3fb5a398e78b29a20be8
Signed-off-by: Amit KS <amit.s12@samsung.com>
android/android_api/base/src/main/java/org/iotivity/ca/CaIpInterface.java
resource/csdk/connectivity/inc/caipnwmonitor.h
resource/csdk/connectivity/src/ip_adapter/android/caipnwmonitor.c
resource/csdk/connectivity/src/ip_adapter/android/org_iotivity_ca_CaIpInterface.h
resource/csdk/connectivity/src/ip_adapter/caipserver.c