platform/core/appfw/cion.git
3 years agoFix SharedQueue timing issue 30/265030/1
jusung [Thu, 7 Oct 2021 08:43:06 +0000 (17:43 +0900)]
Fix SharedQueue timing issue

 - if a message is pushed in the reply_queue_ before calling wait_for(),  timeout occurs.

Change-Id: I7c0d992d3f8f48820733766f2b9787961f4ff631
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoCheck peer exist before sending payload 78/264878/1
Sangyoon Jang [Fri, 1 Oct 2021 07:52:34 +0000 (16:52 +0900)]
Check peer exist before sending payload

Change-Id: Ibb0afdcab0bf7d1acf4d9c1f2342335eda7abeaa
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix variable shadowing 31/264831/1
Sangyoon Jang [Thu, 30 Sep 2021 10:13:12 +0000 (19:13 +0900)]
Fix variable shadowing

Fix to using different variable names or capturing variables.

Change-Id: I6440efe192125ac8d2ffd2c8042e24235131fccf
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix unhandled invalid parameters 30/264830/1
Sangyoon Jang [Thu, 30 Sep 2021 11:22:22 +0000 (20:22 +0900)]
Fix unhandled invalid parameters

Change-Id: Iecdf70bcc913439c9c22d0f27b9753d39c5819ee
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix memory leak 58/264658/1
Sangyoon Jang [Tue, 28 Sep 2021 03:25:10 +0000 (12:25 +0900)]
Fix memory leak

The ref should be set as 1 when the send payload to with peer info.

Change-Id: I96067ef62256e655aa453b6d4d2aebdd25000266
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix ServerChannel 65/264565/3
Sangyoon Jang [Fri, 24 Sep 2021 10:38:07 +0000 (19:38 +0900)]
Fix ServerChannel

- Fix to use std::erase() std::remove_if combination to remove item safely
- Capture std::shared_ptr itself instead of using raw pointer

Change-Id: Ib151a9ea52814dca99adb313124ec2a82a6ebf51
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix wrong resource deletion procedure 53/264653/1
jusung [Tue, 28 Sep 2021 01:44:11 +0000 (10:44 +0900)]
Fix wrong resource deletion procedure

Change-Id: I2179ec5f69c42c9faaa9603f7dc46589aa0d9055
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoFix unhandled invalid parameters 07/264507/3
Sangyoon Jang [Thu, 23 Sep 2021 11:56:01 +0000 (20:56 +0900)]
Fix unhandled invalid parameters

Change-Id: Ia0788a3d2718306375912f45b2efd5edd73b95b5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix doxygen comments 85/264485/2
Sangyoon Jang [Thu, 23 Sep 2021 06:17:09 +0000 (15:17 +0900)]
Fix doxygen comments

Change-Id: Ife6616a9cbc56f76251911b04d4411a4a222f3df
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRelease version 1.1.4 12/264412/1 accepted/tizen/unified/20210917.124842 submit/tizen/20210917.070028
SukhyungKang [Fri, 17 Sep 2021 06:49:37 +0000 (15:49 +0900)]
Release version 1.1.4

changes:
- Change return error value to match tizen error
- Add remove callback functions
- Fix static analysis
- Change function name
- Fix memory leak
- Add description for cion api

Change-Id: I3403a94929a5c173c969e4b494550483cc72d822
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoAdd description for cion api 59/262859/36
SukhyungKang [Sun, 22 Aug 2021 06:54:50 +0000 (15:54 +0900)]
Add description for cion api

Change-Id: I1fbb0a13267af18e6820dcb246155a3ffea019d6
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoFix memory leak 05/264405/1
jusung [Fri, 17 Sep 2021 05:26:21 +0000 (14:26 +0900)]
Fix memory leak

Change-Id: Id3e42cd199f2b512885cbf0031ebfb50ac61d389
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoMerge "Change function name" into tizen
SukHyung Kang [Fri, 17 Sep 2021 03:41:14 +0000 (03:41 +0000)]
Merge "Change function name" into tizen

3 years agoChange function name 94/264394/1
SukhyungKang [Fri, 17 Sep 2021 03:11:36 +0000 (12:11 +0900)]
Change function name

Change-Id: I397294b66ff659e514bf264188da43a10bd6d7bd
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoFix static analysis 92/264392/2
jusung [Fri, 17 Sep 2021 02:18:30 +0000 (11:18 +0900)]
Fix static analysis

 - INCORRECT_PERMISSION
 - INVALIDATE_ITERATOR

Change-Id: I6d6543a7e58309ea5e9af60fd58180d67236c5ee
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoAdd remove callback functions 37/264337/2
SukhyungKang [Thu, 16 Sep 2021 07:23:46 +0000 (16:23 +0900)]
Add remove callback functions

Change-Id: Idab129c323ccbf392c05974e1f29701e2e3feb37
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoChange return error value to match tizen error 66/264266/1
SukhyungKang [Wed, 15 Sep 2021 07:42:22 +0000 (16:42 +0900)]
Change return error value to match tizen error

Change-Id: I8b7677d3a13e4538e45af715932af9e25bae0ca4
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoRelease version 1.1.3 92/264192/1 accepted/tizen/unified/20210915.001804 submit/tizen/20210914.073336
Inkyun Kil [Tue, 14 Sep 2021 07:14:13 +0000 (16:14 +0900)]
Release version 1.1.3

changes:
- Change return value to match between enum and exception
- Add const for parameter
- Change return value to match tizen error
- Fix dbus issue for ESD

Change-Id: I4147c20719b0b4101ac76a02c7b1d4e6aefd5ad0
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoFix dbus issue for ESD 85/264185/1
Inkyun Kil [Tue, 14 Sep 2021 06:22:19 +0000 (15:22 +0900)]
Fix dbus issue for ESD

Change-Id: Id12b185aaa5cc409c38c582cd7456b712d9f43ed
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoChange return value to match tizen error 51/264151/1
SukhyungKang [Tue, 14 Sep 2021 01:37:02 +0000 (10:37 +0900)]
Change return value to match tizen error

Change-Id: Ib66c208b5514ded7b5934102ada5f88e8f901c56
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoAdd const for parameter 05/263905/1
SukhyungKang [Mon, 13 Sep 2021 08:40:00 +0000 (17:40 +0900)]
Add const for parameter

Change-Id: I12025c5f951f307b8687d890ba8d322d8ff5bdfd
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoChange return value to match between enum and exception 39/263839/3
SukhyungKang [Fri, 10 Sep 2021 14:04:55 +0000 (23:04 +0900)]
Change return value to match between enum and exception

Change-Id: I5fc7984e1927a46fc04a04d82715617645ac34cf
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoRelease version 1.1.2 54/263854/1 accepted/tizen/unified/20210913.123236 submit/tizen/20210913.000920
Inkyun Kil [Mon, 13 Sep 2021 00:07:37 +0000 (09:07 +0900)]
Release version 1.1.2

changes:
- Remove build warning messages

Change-Id: If7ddd5c328678204143cea56cb4f97461c9705a5
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoRemove build warning messages 26/263826/4
Hwankyu Jhun [Fri, 10 Sep 2021 10:09:23 +0000 (19:09 +0900)]
Remove build warning messages

Change-Id: I5dc2338182a7251878d252ce53a5613cc7bb6eef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoMerge "Change size parameter to unsigned in type" into tizen
SukHyung Kang [Fri, 10 Sep 2021 07:59:38 +0000 (07:59 +0000)]
Merge "Change size parameter to unsigned in type" into tizen

3 years agoChange size parameter to unsigned in type 96/263796/3
SukhyungKang [Fri, 10 Sep 2021 07:12:47 +0000 (16:12 +0900)]
Change size parameter to unsigned in type

Change-Id: I54fa59b8523bb257b931a0300b5a05b5bdf9f019
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoRelease version 1.1.1 93/263793/1 submit/tizen/20210910.070712
Inkyun Kil [Fri, 10 Sep 2021 06:28:29 +0000 (15:28 +0900)]
Release version 1.1.1

changes:
- Fix typo
- Change callback name to get connected peer info
- Remove duplicated method and fix typo
- Remove result id api
- Fix wrong implementation
- Add return error type
- Fix some codes

Change-Id: Ie0b283f46f140496ca9219d625dd23f7bd90ebcb
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoMerge "Fix some codes" into tizen
Inkyun Kil [Fri, 10 Sep 2021 06:23:37 +0000 (06:23 +0000)]
Merge "Fix some codes" into tizen

3 years agoFix some codes 72/263772/1
Inkyun Kil [Fri, 10 Sep 2021 01:48:14 +0000 (10:48 +0900)]
Fix some codes

- If esd is server_channel, it should generate uuid
- Dbus own code is not necessary

Change-Id: I6be7e6fec7f678304a90886e5cc380e6c9bc5810
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoAdd return error type 30/263530/6
SukhyungKang [Mon, 6 Sep 2021 04:38:46 +0000 (13:38 +0900)]
Add return error type

Change-Id: I36bd4ddee1e4a092164b852b82e8d236bbc41420
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoFix wrong implementation 70/262970/3
SukhyungKang [Tue, 24 Aug 2021 06:14:10 +0000 (15:14 +0900)]
Fix wrong implementation

- add privilege check
- add limit for service and topic name length
- fix wrong return type for error
- fix coding style for C api
- remove unnecessary file

Change-Id: Id395038f5e621c7f96ed3a4902a4019c19b3320b
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoRemove result id api 61/263161/1
jusung [Fri, 27 Aug 2021 05:08:53 +0000 (14:08 +0900)]
Remove result id api

Change-Id: I9356d7d3ad5c599900c3ced5fda42cfc20031355
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoMerge "Remove duplicated method and fix typo" into tizen
SukHyung Kang [Tue, 24 Aug 2021 01:45:48 +0000 (01:45 +0000)]
Merge "Remove duplicated method and fix typo" into tizen

3 years agoFix typo 07/262907/1
SukhyungKang [Mon, 23 Aug 2021 09:14:51 +0000 (18:14 +0900)]
Fix typo

Change-Id: I28f40cd1c77d873d64d368d09bd56c3771ca39be
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoRemove duplicated method and fix typo 00/262900/1
SukhyungKang [Mon, 23 Aug 2021 08:02:44 +0000 (17:02 +0900)]
Remove duplicated method and fix typo

Change-Id: I17b18b0ae8220b0fbf0755efadeaf541ad3b4503
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoChange callback name to get connected peer info 88/262888/1
SukhyungKang [Mon, 23 Aug 2021 06:36:14 +0000 (15:36 +0900)]
Change callback name to get connected peer info

Change-Id: I21c1261a4b17a966de36d8293e338e4b3368480c
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoFix typo 87/262887/1
SukhyungKang [Mon, 23 Aug 2021 06:21:42 +0000 (15:21 +0900)]
Fix typo

Change-Id: Icece4429a4c269cd1c5acaff95fecc978cb992f6
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoRelease version 1.1.0 69/262869/1 accepted/tizen/unified/20210823.124235 submit/tizen/20210823.021756
Inkyun Kil [Mon, 23 Aug 2021 00:59:50 +0000 (09:59 +0900)]
Release version 1.1.0

changes :
- Discovery ondemand list
- Add ondemandlaunch
- Fix usege of g_idle_add_full
- Fix automerge error
- Add set/get readable name
- Fix bugs

Change-Id: I30be2d95dc865690b64e60f7bd9292135ab04595
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoFix bugs 07/262707/3
Inkyun Kil [Wed, 18 Aug 2021 07:54:08 +0000 (16:54 +0900)]
Fix bugs

- Remove needless codes for ondemand launch (sync->async)
- Add omit break

Change-Id: I235dd2aeaade75faafb656b990578b801a13bd7a
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoAdd set/get readable name 41/261041/18
SukHyung, Kang [Fri, 9 Jul 2021 03:49:42 +0000 (12:49 +0900)]
Add set/get readable name

Change-Id: Ie448506e88d20858f477e7153556e4ff2524de42
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
3 years agoFix automerge error 64/262764/1
jusung [Thu, 19 Aug 2021 08:27:05 +0000 (17:27 +0900)]
Fix automerge error

Change-Id: Ia239fdf3fe24361c976029027d79e1d5d7d6e430
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoFix usage of g_idle_add_full 24/261824/4
Sangyoon Jang [Tue, 27 Jul 2021 06:55:55 +0000 (15:55 +0900)]
Fix usage of g_idle_add_full

When idle callback invoked, check whether channel object expired or not.

Change-Id: Ia867e09847c8f1fd6a90b8efa3e49e66c101feb4
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoAdd ondemandlaunch 99/262199/5
Inkyun Kil [Tue, 29 Jun 2021 04:01:44 +0000 (13:01 +0900)]
Add ondemandlaunch

Change-Id: I4249c134d841ebd017db3759a78aef87ab5cdf11
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoDiscovery ondemand list 08/261308/12
Inkyun Kil [Mon, 3 May 2021 01:40:00 +0000 (10:40 +0900)]
Discovery ondemand list

Releated Patch : https://review.tizen.org/gerrit/c/platform/core/appfw/event-system/+/258545

Change-Id: Ic40b2d3920f889f1afe4c1bcafa0930b056ffa26
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoRelease version 1.0.1 46/262346/2 accepted/tizen/unified/20210818.124644 submit/tizen/20210809.072155 submit/tizen/20210810.065528
Hyunho [Mon, 9 Aug 2021 02:30:14 +0000 (11:30 +0900)]
Release version 1.0.1

Changes:
 - Initialize member values
 - Fix signed to bigger unsigned bug
 - Add missing break
 - Check file remove function's return value
 - Fix memory leak

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
Change-Id: I377db517ec8168a154fbeecfe60e6f470641c004

3 years agoMerge "Check file remove function's return value" into tizen
Hyunho Kang [Mon, 9 Aug 2021 02:28:32 +0000 (02:28 +0000)]
Merge "Check file remove function's return value" into tizen

3 years agoMerge "Add missing break" into tizen
Hyunho Kang [Mon, 9 Aug 2021 02:28:17 +0000 (02:28 +0000)]
Merge "Add missing break" into tizen

3 years agoFix memory leak 41/262341/3
Hyunho [Mon, 9 Aug 2021 01:41:16 +0000 (10:41 +0900)]
Fix memory leak

Change-Id: Iedf2bbac10e729233e823463d9722abb2d048ea8
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoMerge "Fix signed to bigger unsigned bug" into tizen
Hyunho Kang [Mon, 9 Aug 2021 02:27:48 +0000 (02:27 +0000)]
Merge "Fix signed to bigger unsigned bug" into tizen

3 years agoCheck file remove function's return value 44/262344/1
Hyunho [Mon, 9 Aug 2021 02:15:16 +0000 (11:15 +0900)]
Check file remove function's return value

Change-Id: Ie304f0f406c666efb6b41904f12a15019710e5ec
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoAdd missing break 43/262343/1
Hyunho [Mon, 9 Aug 2021 02:09:43 +0000 (11:09 +0900)]
Add missing break

Change-Id: I10d66954b9037c79223fc846b97665b90018365b
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoFix signed to bigger unsigned bug 40/262340/2
Hyunho [Mon, 9 Aug 2021 01:29:37 +0000 (10:29 +0900)]
Fix signed to bigger unsigned bug

Change-Id: I86933d01775ef22e186a31c409cfcc7bfeb482ef
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoInitialize member values 39/262339/3
Hyunho [Mon, 9 Aug 2021 00:54:59 +0000 (09:54 +0900)]
Initialize member values

Change-Id: I7358f3bea5cc8c35d257ea2e40608eceb09884b1
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoRelease version 1.0.0 79/262279/1 accepted/tizen/unified/20210806.060002 submit/tizen/20210806.015209
SukhyungKang [Fri, 6 Aug 2021 01:35:45 +0000 (10:35 +0900)]
Release version 1.0.0

Change-Id: I3dcd1101e11d479f418e27a7ab30496f398dbf9b
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
3 years agoRemove checking Wi-Fi status 48/262248/1
Sangyoon Jang [Thu, 5 Aug 2021 05:58:37 +0000 (14:58 +0900)]
Remove checking Wi-Fi status

Currently, the channel cannot detect connection lost after channel created.
Instead, cion(cine) will return error when the connection lost.

Change-Id: I99c43b7336e731a60f200efd9cc131946f09b534
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoChange broadcast channel to group channel 54/261554/1
jusung [Wed, 21 Jul 2021 06:17:07 +0000 (15:17 +0900)]
Change broadcast channel to group channel

Change-Id: Idf36096af3a87b43c3fea1efb9362197d953e1ad
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoRevert "Change broadcast channel to group channel" 53/261553/1
jusung [Wed, 21 Jul 2021 06:08:48 +0000 (15:08 +0900)]
Revert "Change broadcast channel to group channel"

This reverts commit 1941567c4bc41c413d854362b1b82dda89d25484.

Change-Id: Ia0e00266a6d1a12ec4eb7f6d065b78174312adc8
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoChange broadcast channel to group channel
jusung [Wed, 21 Jul 2021 06:02:11 +0000 (15:02 +0900)]
Change broadcast channel to group channel

Change-Id: Id1703d6dee6aaeea969d55f5fe3d4441b58dfb71
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoAdd include <stdint.h> for uint64_t 69/260669/3
Inkyun Kil [Thu, 1 Jul 2021 01:33:51 +0000 (10:33 +0900)]
Add include <stdint.h> for uint64_t

To use 'cion_payload.h', make sure of header

Change-Id: Iae3097ad71a163435202a698cf37b1a86eb791e0
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
3 years agoRemove tab 73/261273/2
Sangyoon Jang [Wed, 14 Jul 2021 08:38:51 +0000 (17:38 +0900)]
Remove tab

Use space instead of tab for consistency.

Change-Id: I3610dab8135a3eeb6bc3f3512d250777835cb521
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoUse separated dp when sending synchronously 92/260892/5
Sangyoon Jang [Tue, 6 Jul 2021 08:56:08 +0000 (17:56 +0900)]
Use separated dp when sending synchronously

Change-Id: I619e4d4d5efdff094f8902ad7d9b7d868c20bee5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoMerge "Gets uuid from esd" into tizen
SukHyung Kang [Mon, 5 Jul 2021 05:35:47 +0000 (05:35 +0000)]
Merge "Gets uuid from esd" into tizen

3 years agoGets uuid from esd 79/260479/13
SukHyung, Kang [Fri, 25 Jun 2021 09:21:32 +0000 (18:21 +0900)]
Gets uuid from esd

Change-Id: I20dadfed66188940c3a1c6567c981e76b6868aed
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
3 years agoFix name of VineInterface callbacks 79/260579/1
Sangyoon Jang [Tue, 29 Jun 2021 08:19:02 +0000 (17:19 +0900)]
Fix name of VineInterface callbacks

To make more clear against callbacks related to PeerInfo.

 - OnTerminated -> OnDpTerminated
 - OnOpened     -> OnDpOpened
 - OnReceived   -> OnDpReceived
 - OnAccepted   -> OnDpAccepted
 - OnDiscovered -> OnDpDiscovered
 - OnJoined     -> OnDpJoined
 - OnLeft       -> OnDpLeft

Change-Id: Ia931747a7211d1a4dcf32c082d6d3d46c8afe220
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoOptimize some parameters 49/260549/1
Sangyoon Jang [Tue, 29 Jun 2021 03:28:50 +0000 (12:28 +0900)]
Optimize some parameters

Use reference or move semantics instead of copy.

Change-Id: Iab4c4f5981a7982290843b497b71d6f353f665d2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoImprove readability of ServerChannel 33/260533/1
Sangyoon Jang [Mon, 28 Jun 2021 10:06:03 +0000 (19:06 +0900)]
Improve readability of ServerChannel

- Move all implementation into Impl class
- Fix ordering of methods
- Remove duplicated methods
- Fix typo

Change-Id: I0760ca593524f4c31a541ba06252f94b68e69c00
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRemove error callback 63/260463/3
Hyunho [Fri, 25 Jun 2021 06:58:03 +0000 (15:58 +0900)]
Remove error callback

Change-Id: Iba1acf29877ae5c219991c010f07a6624fe7e08a
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoFix build warnings 74/260474/2
Sangyoon Jang [Fri, 25 Jun 2021 08:57:24 +0000 (17:57 +0900)]
Fix build warnings

Change-Id: I047a10b1a88a424663f96808321e010e4dbfca66
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoUse temporary variable 03/260503/1
Hwankyu Jhun [Mon, 28 Jun 2021 00:54:25 +0000 (09:54 +0900)]
Use temporary variable

While retrieving the peer list in SendPayloadAsync() method,
the 'to' variable should be used.

Change-Id: I0506ed5a4b925b5fff882205f971ce8be6851606
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix crash when sending payload async 72/260472/3
Sangyoon Jang [Fri, 25 Jun 2021 08:21:33 +0000 (17:21 +0900)]
Fix crash when sending payload async

cion server/client may not provide callback for sending payload async.

Change-Id: I5956b4c744000747fa744a2ce72e23a92499585b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRemove duplicated code 65/260465/2
Sangyoon Jang [Fri, 25 Jun 2021 07:08:36 +0000 (16:08 +0900)]
Remove duplicated code

Fix ServerChannel::SendPayloadAsync().

Change-Id: I90e98cdd4486f0f21f9d63f59fd771b09c8a000f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix coding style 52/260452/2
Sangyoon Jang [Fri, 25 Jun 2021 05:30:28 +0000 (14:30 +0900)]
Fix coding style

Change-Id: Ibc6034f7b1918b3887a3ef1562827e9d829dc363
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoImprove readability of ClientChannel 33/260233/6
Sangyoon Jang [Tue, 22 Jun 2021 08:27:44 +0000 (17:27 +0900)]
Improve readability of ClientChannel

Move all implementation into Impl class.
Fix ordering of methods.

Change-Id: I20e8f783e1f496572c4af475245b2609515dbd14
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRemove duplication 85/260285/9
Hyunho [Wed, 23 Jun 2021 06:58:00 +0000 (15:58 +0900)]
Remove duplication

Change-Id: I93921fbfde6c0a6fac549c2e636d21eed6ff78c5
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoFix build error 91/260191/1
jusung [Tue, 22 Jun 2021 01:01:28 +0000 (10:01 +0900)]
Fix build error

 - Resolve IP based on address family

Change-Id: I6a0812fe55e210a91235d6525bdaafddb46dfd62
Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoAdd missing param name
Hyunho [Mon, 21 Jun 2021 06:36:23 +0000 (15:36 +0900)]
Add missing param name

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoUse uint64_t instead of long
Hyunho [Mon, 21 Jun 2021 06:35:14 +0000 (15:35 +0900)]
Use uint64_t instead of long

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoAdd get payload id capi
Hyunho [Mon, 21 Jun 2021 02:18:07 +0000 (11:18 +0900)]
Add get payload id capi

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoFix wrong header format
Hyunho [Mon, 14 Jun 2021 11:38:32 +0000 (20:38 +0900)]
Fix wrong header format

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoRemove unnecessary character
Hyunho [Mon, 14 Jun 2021 11:35:55 +0000 (20:35 +0900)]
Remove unnecessary character

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoAdd server side async result logic
Hyunho [Mon, 14 Jun 2021 08:14:49 +0000 (17:14 +0900)]
Add server side async result logic

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoAdd peerinfo for payload async result and capi
Hyunho [Fri, 11 Jun 2021 07:54:01 +0000 (16:54 +0900)]
Add peerinfo for payload async result and capi

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoAdd a callback to receive async calls' result
Hyunho [Mon, 7 Jun 2021 08:19:52 +0000 (17:19 +0900)]
Add a callback to receive async calls' result

Signed-off-by: Hyunho <hhstark.kang@samsung.com>
3 years agoInvoke OnConnectionResult at the main thread
Sangyoon Jang [Wed, 9 Jun 2021 05:22:38 +0000 (14:22 +0900)]
Invoke OnConnectionResult at the main thread

Change-Id: I0dd7cc64301773b538af5ece47e7a8dc45ba437f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRemove unnecessary log
jusung [Wed, 9 Jun 2021 08:32:32 +0000 (17:32 +0900)]
Remove unnecessary log

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoFix discovery bug
jusung [Wed, 9 Jun 2021 06:50:36 +0000 (15:50 +0900)]
Fix discovery bug

 - discovered_cb may be invoked before the service_name_ is set

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoFix coding rule
jusung [Wed, 2 Jun 2021 08:11:52 +0000 (17:11 +0900)]
Fix coding rule

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoFix coding rule
jusung [Wed, 2 Jun 2021 08:01:45 +0000 (17:01 +0900)]
Fix coding rule

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoUse unordered_map instead of map
jusung [Wed, 2 Jun 2021 02:46:25 +0000 (11:46 +0900)]
Use unordered_map instead of map

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoFix coding rule
jusung [Tue, 1 Jun 2021 11:55:41 +0000 (20:55 +0900)]
Fix coding rule

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoUse peer_id instead of ip address in pub/sub
jusung [Tue, 1 Jun 2021 11:49:50 +0000 (20:49 +0900)]
Use peer_id instead of ip address in pub/sub

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoApply vine_dp_set_remote_port
jusung [Mon, 31 May 2021 05:44:26 +0000 (14:44 +0900)]
Apply vine_dp_set_remote_port

- vine_dp_set_port has been separated into vine_dp_set_port and vine_dp_set_remote_port

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoAdd joined/left callback
jusung [Tue, 18 May 2021 00:58:56 +0000 (09:58 +0900)]
Add joined/left callback

Signed-off-by: jusung <jusung07.son@samsung.com>
3 years agoFix uninitialized variable of ChannelJob
Sangyoon Jang [Tue, 1 Jun 2021 08:57:14 +0000 (17:57 +0900)]
Fix uninitialized variable of ChannelJob

Change-Id: I45489ee220209d9f9acb0dc92d594249a1c08e41
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix static analysis issue
Sangyoon Jang [Tue, 1 Jun 2021 08:36:18 +0000 (17:36 +0900)]
Fix static analysis issue

Fix UNSPECIFIED_CHAR_IN_COND

Change-Id: Iaee70b16e93ac1084c703046b6733b70a06dec49
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix uninitialized variables of constructor
Sangyoon Jang [Tue, 1 Jun 2021 08:10:16 +0000 (17:10 +0900)]
Fix uninitialized variables of constructor

Change-Id: Iaada67b33961eba98e3abefd52e86bfb8bae2624
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoSet enum class PayloadType as char type
Sangyoon Jang [Tue, 1 Jun 2021 07:15:26 +0000 (16:15 +0900)]
Set enum class PayloadType as char type

Change-Id: Ifd47a905ce9e0f29692317baefdadc962fedd2f1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix build error
Sangyoon Jang [Tue, 1 Jun 2021 07:15:21 +0000 (16:15 +0900)]
Fix build error

Change-Id: Ic4cc27d74a04fdb7766c41d7548ed9fc541203be
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix UNSPECIFIED_CHAR_IN_COND
review-bot [Thu, 27 May 2021 07:02:48 +0000 (16:02 +0900)]
Fix UNSPECIFIED_CHAR_IN_COND

3 years agoFix UNINIT.CTOR
review-bot [Thu, 27 May 2021 07:02:56 +0000 (16:02 +0900)]
Fix UNINIT.CTOR