Fix the infinite PRESENCE_STOPPED message
authorSashi Penta <sashi.kumar.penta@intel.com>
Sun, 23 Nov 2014 00:40:24 +0000 (16:40 -0800)
committerSashi Penta <sashi.kumar.penta@intel.com>
Wed, 26 Nov 2014 20:17:03 +0000 (12:17 -0800)
commitd19ecf865b3256e32dc84e72ec025c6f6afe2183
tree2978112cb1b099aa8db518424f915be8f347b877
parent90d4cabefe76a4bf7ec3706ef68f8d9799e82864
Fix the infinite PRESENCE_STOPPED message

When a client to subscirbes to a server, and when the server process is
exited, client is getting was getting infinte PRESENCE_STOPPED messages.
This commit fixes this issue. Introduced a new stack result
type : PRESENCE_TIMEOUT to indicate timeout of the server.
PRESENCE_STOPPED is used for graceful stopping of the server.

Change-Id: I4e122176f8f7ea8e04d98dea02d22432b4c4555a
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
resource/csdk/stack/include/ocstack.h
resource/csdk/stack/samples/linux/SimpleClientServer/common.cpp
resource/csdk/stack/src/ocstack.c
resource/examples/presenceclient.cpp