Changed tcp adapter logic to process the received data directly.
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Tue, 8 Mar 2016 22:45:51 +0000 (07:45 +0900)
committerJee Hyeok Kim <jihyeok13.kim@samsung.com>
Mon, 14 Mar 2016 14:31:08 +0000 (14:31 +0000)
commit56fa4102ac62e6e165ffc70afa5a3a3d41d1ea38
tree2a17ef82252e67f5e1bb027b6e5774579c4b25e4
parent30a06e1d82cb7fb12035eb189746ef78ed8c1dae
Changed tcp adapter logic to process the received data directly.

Currently If new connection is created with remote device, received
first data from remote device can be processed after select timeout.
because select() is blocking function. so I added connection file
descriptor to update read file descriptor list after receiving
connection event.

Change-Id: I26d1ee95b3c252194c38d47490b972193e693e77
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5569
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5731
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
resource/csdk/connectivity/api/cacommon.h
resource/csdk/connectivity/src/tcp_adapter/catcpadapter.c
resource/csdk/connectivity/src/tcp_adapter/catcpserver.c