added filter to handle an IP loopback message in CA directly
authorJaewook Jung <jw0213.jung@samsung.com>
Thu, 6 Oct 2016 10:35:27 +0000 (19:35 +0900)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Wed, 7 Dec 2016 17:12:11 +0000 (17:12 +0000)
commite3c156d2bb5ccc71dd2b1d4abb0844a99a4d2eb5
treee8109d9e4e06cbeac6d08c29bc8003f5bbe7bb30
parent89781fc8d0f10725913488597a5b5e1b68425c2f
added filter to handle an IP loopback message in CA directly

If IoTivity stack sends a message to itself, which means the loopback,
it is unnecessary to let them go through the socket layer.
Especially it is a waste when the large payload will be sent by block-wise transfer.
So I made CA layer to handle the loopback message directly.

Change-Id: I2b8e5217575df391dd4ab66d924a3a24c2584915
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12887
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/connectivity/inc/cainterfacecontroller.h
resource/csdk/connectivity/inc/caipadapter.h
resource/csdk/connectivity/src/cainterfacecontroller.c
resource/csdk/connectivity/src/camessagehandler.c
resource/csdk/connectivity/src/ip_adapter/caipadapter.c