[IOT-1554] Added error callback when adapter is terminated
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Thu, 10 Nov 2016 09:39:24 +0000 (18:39 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 18 Nov 2016 08:38:07 +0000 (08:38 +0000)
commit1bcc5da764018cb23fa0d2729b103b8a244235d4
treeda99bde9dadb8c448eb921f4a05a3e4341e45b67
parent009b22f7cead9bf9bb0a5d66fbe6dc653e0f8057
[IOT-1554] Added error callback when adapter is terminated

If application try to send data when adapter is terminated,
Error message should be delivered to application layer.

Change-Id: Iec02116e864fb8667570c67982f44838d74f84a9
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14181
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 871b61a5eb48b4891f1bb447a6795505871e872f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14395
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
resource/csdk/connectivity/src/tcp_adapter/catcpadapter.c