Refactor Client & Socket 55/238855/7
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 20 Jul 2020 00:18:51 +0000 (09:18 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 20 Jul 2020 04:36:33 +0000 (13:36 +0900)
commit4de57f6d7bcc4352e99ea0147af13f321cc11a86
tree8e7768f6ec375f254c89da923906bc8fd38ae7f4
parentfdb6e2e3836483af25e22ead068a38e64756186a
Refactor Client & Socket

 - Remove "is_client" from Socket
 - Add "SetTimeout()" from Socket
 - Add "timesec" parameter from "Client()"

The Difference from whether "is_client" or not is just "SetOption()".
So it more proper than using "is_client" that adding "SetTimeout()".
"timesec" need to set timeout. If "timesec == -1", recv timeout is infinity.
Default is 5sec.

Change-Id: I91728697f19c0e4dc29d3c2bf10d674f3f5579e7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
aul/socket/client.cc
aul/socket/client.hh
aul/socket/socket.cc
aul/socket/socket.hh