platform/core/api/vine.git
2 years agonan plugin: add publish and subscribe 03/261703/2
Cheoleun Moon [Fri, 23 Jul 2021 03:11:37 +0000 (12:11 +0900)]
nan plugin: add publish and subscribe

Change-Id: I891c5e17cd87909b6fabbffec45509610a20f69f
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoMerge "Remove dead code" into tizen submit/tizen/20210722.025245
cheoleun moon [Thu, 22 Jul 2021 02:14:07 +0000 (02:14 +0000)]
Merge "Remove dead code" into tizen

2 years agoRemove dead code 87/261587/1
Cheoleun Moon [Thu, 22 Jul 2021 00:29:42 +0000 (09:29 +0900)]
Remove dead code

Change-Id: Ib80b8e0f1fbc5b07fc58ec158c313b1a47fbbfeb
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoMerge "Increate the max length of topic to 1023" into tizen
cheoleun moon [Thu, 22 Jul 2021 00:01:12 +0000 (00:01 +0000)]
Merge "Increate the max length of topic to 1023" into tizen

2 years agoMerge "Add remarks for vine_set_event_loop" into tizen
cheoleun moon [Wed, 21 Jul 2021 08:23:00 +0000 (08:23 +0000)]
Merge "Add remarks for vine_set_event_loop" into tizen

2 years agoMerge "vine-ble-test: Add test for BLE" into tizen
cheoleun moon [Wed, 21 Jul 2021 08:22:54 +0000 (08:22 +0000)]
Merge "vine-ble-test: Add test for BLE" into tizen

2 years agoIncreate the max length of topic to 1023 65/261565/2
Cheoleun Moon [Wed, 21 Jul 2021 08:21:04 +0000 (17:21 +0900)]
Increate the max length of topic to 1023

Change-Id: I628d3110de89276344a38ecb3d1705f569175bab
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoAdd remarks for vine_set_event_loop 48/261448/1
Cheoleun Moon [Mon, 19 Jul 2021 07:57:53 +0000 (16:57 +0900)]
Add remarks for vine_set_event_loop

Change-Id: If61bda9ef21ec93abd61b44fad12f88c2865e5cf
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agovine-ble-test: Add test for BLE 45/261445/3
Cheoleun Moon [Mon, 19 Jul 2021 05:48:20 +0000 (14:48 +0900)]
vine-ble-test: Add test for BLE

Change-Id: Ia270a49e509d9e2b3b6b415e176d09894fb1f28a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoevent-loop: handles idle event 56/261356/2
Seonah Moon [Fri, 16 Jul 2021 02:24:54 +0000 (11:24 +0900)]
event-loop: handles idle event

Change-Id: I6858826eeba960ddeb0928930462e4d4f848fd5f

2 years agoFix svace issues 60/261260/1 accepted/tizen/unified/20210715.053928 submit/tizen/20210714.100702
Seonah Moon [Wed, 14 Jul 2021 05:18:44 +0000 (14:18 +0900)]
Fix svace issues

Change-Id: I3ba728610e840d98d1b9ed50864589708c37c105

2 years agoImplement close function for GATT plugin 48/261148/2
Seonah Moon [Mon, 12 Jul 2021 10:38:11 +0000 (19:38 +0900)]
Implement close function for GATT plugin

Change-Id: I87a9ba031d8e02166b22eb4aebdd1c6b7f31f92f

2 years agovine-tool: terminate a tool when receiving interrupt signal 41/261141/2
Seonah Moon [Mon, 12 Jul 2021 09:34:51 +0000 (18:34 +0900)]
vine-tool: terminate a tool when receiving interrupt signal

- fix vine-tool bug
- increase the version number for BLE GATT

Change-Id: I42841ceb7ef72bfa8d17c19da16d30444e0740a0

2 years agoKeep client list in GATT server handle 53/261053/3
Seonah Moon [Fri, 9 Jul 2021 06:10:24 +0000 (15:10 +0900)]
Keep client list in GATT server handle

BT GATT server api doens't create a new handle each connection.
But DataPath is designed that new handle is created whenever connected with a peer.
In this patch, to compatibility, GATT server will manage a client list.

Change-Id: Ica3971031ae2e348ad1726057336de830b0ced0b

2 years agoImplement read/write for BLE GATT 09/261009/2
Seonah Moon [Thu, 8 Jul 2021 08:47:04 +0000 (17:47 +0900)]
Implement read/write for BLE GATT

Change-Id: Id018c74de7bac482d3d9bd59fca6ab61598a9cb2

2 years agoAdd new API to set/get remote address(GATT) 46/260946/1
Seonah Moon [Wed, 7 Jul 2021 09:45:58 +0000 (18:45 +0900)]
Add new API to set/get remote address(GATT)

Change-Id: I2e6523b01af33aa7d7bfd99a4f7720f484adb4ab

2 years agoAdd new API to set DP method 98/260898/3
Seonah Moon [Tue, 6 Jul 2021 10:11:22 +0000 (19:11 +0900)]
Add new API to set DP method

Change-Id: I92440476858e246d859bb31958e65e0bacff7330

2 years agoSeperate GATT from BLE plugin 06/260806/2
Seonah Moon [Mon, 5 Jul 2021 02:21:58 +0000 (11:21 +0900)]
Seperate GATT from BLE plugin

Change-Id: I341ad739a779a0d4659da478e6acf00d8c4a8d2c

2 years agoFirst draft for BLE GATT plugin 42/260742/8
Seonah Moon [Fri, 2 Jul 2021 05:24:45 +0000 (14:24 +0900)]
First draft for BLE GATT plugin

Change-Id: I70065ea272a3fe63ca156188656112fce04333cc

2 years agoble disc: Do not set service_data 20/260820/1
Cheoleun Moon [Mon, 5 Jul 2021 08:02:17 +0000 (17:02 +0900)]
ble disc: Do not set service_data

Change-Id: I53ee0fc993a628c12a2028079641b3a588ec0271
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoFix resource leak 52/260752/1 accepted/tizen/unified/20210705.125131 submit/tizen/20210705.020242
Cheoleun Moon [Fri, 2 Jul 2021 06:40:53 +0000 (15:40 +0900)]
Fix resource leak

Change-Id: I29ed976a281773c75f8f1a5eaed108edcb09b4a3
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agovine-tool: Handle SIGINT for glib event loop 43/260743/6
Cheoleun Moon [Fri, 2 Jul 2021 05:38:32 +0000 (14:38 +0900)]
vine-tool: Handle SIGINT for glib event loop

Change-Id: I2c4d09f46595ee29a913b4954a5833bdebd8bbfe
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoAdd null check in discovered_cb 35/260735/2
Cheoleun Moon [Fri, 2 Jul 2021 02:50:29 +0000 (11:50 +0900)]
Add null check in discovered_cb

Change-Id: I29a3e3044473ad3943131b91a4b2b896a0e15ace
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoHandle unsupported functions 29/260729/4
Cheoleun Moon [Fri, 2 Jul 2021 02:16:19 +0000 (11:16 +0900)]
Handle unsupported functions

Change-Id: I9ae35dd453129acd27dc5d6e0713724256fdad24
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agovine-tool: Add ble discovery 86/260686/6
Cheoleun Moon [Thu, 1 Jul 2021 06:02:14 +0000 (15:02 +0900)]
vine-tool: Add ble discovery

Change-Id: Iebc94f08af3e7525e53d08a2370d9f34dfa97118
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoChange discoverd_cb for ble support 74/260574/2
Cheoleun Moon [Tue, 29 Jun 2021 07:47:46 +0000 (16:47 +0900)]
Change discoverd_cb for ble support

Change-Id: Ie9750efb9662929d51f6660ac15bc25f5b9d08e8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoble plugin: Implement basic operation 20/260520/2
Cheoleun Moon [Mon, 28 Jun 2021 07:21:11 +0000 (16:21 +0900)]
ble plugin: Implement basic operation

Change-Id: I8dd59934cdd897172b0ef36100b670e2ed4f02f1
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoadd ble_publish 19/260519/2
Cheoleun Moon [Fri, 25 Jun 2021 08:28:33 +0000 (17:28 +0900)]
add ble_publish

Change-Id: I0d60fe55ddc7271cb2e625fed9aebf50a5c90eb8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agolibwebsockets: disable unnecessary options 46/260246/3 accepted/tizen/unified/20210629.130140 submit/tizen/20210628.025645
Seonah Moon [Tue, 22 Jun 2021 10:35:11 +0000 (19:35 +0900)]
libwebsockets: disable unnecessary options

Change-Id: Icad061dbcab8dc9556036693fb52138e82252f5c

2 years agoMerge "vine-tool: timefd() bug fix" into tizen
seonah moon [Wed, 23 Jun 2021 06:16:01 +0000 (06:16 +0000)]
Merge "vine-tool: timefd() bug fix" into tizen

2 years agoAllow to set event loop type with api 29/260229/2
Cheoleun Moon [Tue, 22 Jun 2021 07:57:56 +0000 (16:57 +0900)]
Allow to set event loop type with api

Change-Id: Ib33d2e130f0cc939272d496605a64a768188335c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agovine-tool: timefd() bug fix 67/260167/3
Seonah Moon [Mon, 21 Jun 2021 11:39:10 +0000 (20:39 +0900)]
vine-tool: timefd() bug fix

Change-Id: If1b7e6974c377b9401ff7bf21369fb655a8a6d17

2 years agoAdd the support of glib event loop 77/260177/5
Cheoleun Moon [Mon, 21 Jun 2021 11:59:23 +0000 (20:59 +0900)]
Add the support of glib event loop

Change-Id: I692b5a8edba1ebe751283044ea5461da53e38fa3
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoMerge "Modify to use various event loop" into tizen
cheoleun moon [Mon, 21 Jun 2021 09:34:41 +0000 (09:34 +0000)]
Merge "Modify to use various event loop" into tizen

2 years agoModify to use various event loop 50/260150/1
Cheoleun Moon [Mon, 21 Jun 2021 09:11:26 +0000 (18:11 +0900)]
Modify to use various event loop

Change-Id: If5c2510ad5a91444f2b973215d92122b2689d58b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoProcess lws service after requesting to destroy a vhost 39/260139/1 accepted/tizen/unified/20210622.125832 submit/tizen/20210621.075049
Seonah Moon [Mon, 21 Jun 2021 05:58:08 +0000 (14:58 +0900)]
Process lws service after requesting to destroy a vhost

LWS closes a server socket next time around the event loop.

Change-Id: I9eeb1bad41dac93617ce13ef63474e1f0e8cc8cc

2 years agoUpgrade libwebsockets from v4.0-stable to v4.2-stable 81/260081/3
Seonah Moon [Fri, 18 Jun 2021 07:31:44 +0000 (16:31 +0900)]
Upgrade libwebsockets from v4.0-stable to v4.2-stable

Change-Id: If2997a5c60a0ae93117510bfbedfc75d960ffb5c

2 years agoDisconnect clients when server DP is closed 14/260014/4
Seonah Moon [Thu, 17 Jun 2021 10:33:09 +0000 (19:33 +0900)]
Disconnect clients when server DP is closed

Change-Id: Ibe90ac217e7ca431e0a69f9277e99a294c76c55b

2 years agoResolve IP based on address family 16/259916/2
Seonah Moon [Wed, 16 Jun 2021 11:34:58 +0000 (20:34 +0900)]
Resolve IP based on address family

Change-Id: I3e4ea81420ac2430f724a6b41af31f95a00e39d7

2 years agounittest: fix a crash issue 15/259915/2
Seonah Moon [Wed, 16 Jun 2021 11:30:40 +0000 (20:30 +0900)]
unittest: fix a crash issue

Change-Id: Ifa02a44987f082e3ca9577c11c87f244c91d6d6b

2 years agoMerge "Wake the eventloop up when requesting deinitialize" into tizen
seonah moon [Wed, 9 Jun 2021 11:11:29 +0000 (11:11 +0000)]
Merge "Wake the eventloop up when requesting deinitialize" into tizen

2 years agoSelect proper vhost when connecting with a client 65/259365/6
Seonah Moon [Mon, 7 Jun 2021 01:09:58 +0000 (10:09 +0900)]
Select proper vhost when connecting with a client

[problem]
Sometimes, Segfault occurs when pubsub open/close repeatedly
for the same port.

[cause]
libwebsockets doesn't close the vhost and a listen socket immediately
eventhough a vine requests it.
After then, if the accept event occurs, libwebsockets returns old vhost
which has the same listen port from the vhost_list.

Change-Id: Ieded5f672b077939a126764b99ef1f052a01461b

2 years agoWake the eventloop up when requesting deinitialize 06/259506/1
Seonah Moon [Wed, 9 Jun 2021 06:27:19 +0000 (15:27 +0900)]
Wake the eventloop up when requesting deinitialize

Change-Id: If0145571a4d98caeb29111beb2029ea030ba3ba4

2 years agoFix epoll() performance issue 93/259393/2
Seonah Moon [Mon, 7 Jun 2021 07:10:00 +0000 (16:10 +0900)]
Fix epoll() performance issue

vine event-loop runs on independent thread.
So, It is suitable to make a timeout to -1.

https://man7.org/linux/man-pages/man2/epoll_wait.2.html

Change-Id: Id4711937baeebe085ae947abc52436d09862692a

2 years agoVerifier: send a message in joined callback for pubsub test 04/259204/2
Seonah Moon [Wed, 2 Jun 2021 05:37:25 +0000 (14:37 +0900)]
Verifier: send a message in joined callback for pubsub test

Change-Id: I78ac15aef4552ed8c8eabf2e8b5c8dc829170677

2 years agobug fix: pass a proper argument to printf() 81/259181/1
Seonah Moon [Wed, 2 Jun 2021 02:14:17 +0000 (11:14 +0900)]
bug fix: pass a proper argument to printf()

Change-Id: If02199c3b59a4a2a03838f7614f98a6cca082814

2 years agoAdd vine_dp_get_id() #2 27/259127/2 accepted/tizen/unified/20210602.122354 submit/tizen/20210601.115121
Seonah Moon [Tue, 1 Jun 2021 09:35:14 +0000 (18:35 +0900)]
Add vine_dp_get_id() #2

Change-Id: I84c80a5f970caa8bee6222ff92a5e407540e3c4c

2 years agoAdd vine_dp_get_id() 80/259080/7
Seonah Moon [Tue, 1 Jun 2021 02:15:26 +0000 (11:15 +0900)]
Add vine_dp_get_id()

- Add vine_dp_get_id()
- Pass a peer Id to joined/left callback instead of IP/port

Change-Id: I2c0f9db4fdbf9e37b0746a2f30f580ae3ac13488

2 years agoChange print_error to _test_print_error 33/259033/3 submit/tizen/20210531.070519 submit/tizen/20210601.065609
Cheoleun Moon [Mon, 31 May 2021 06:59:25 +0000 (15:59 +0900)]
Change print_error to _test_print_error

Change-Id: I797c6fb3dcb8890e2cf99efd2787e7a6c546ca19
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoDP: Add set/get remote port, get local ip 71/258771/5 submit/tizen/20210531.043146
Seonah Moon [Tue, 25 May 2021 10:50:19 +0000 (19:50 +0900)]
DP: Add set/get remote port, get local ip

- Fix vine_dp_[set/get]_port
- Add new API vine_dp_[set/get]_remote_port
- Add new API vine_dp_get_ip

Change-Id: Ib1e1e4a5cfd72fcf3a33392921a5366225fc0275

2 years agotests: add test for pubsub repetition 23/258623/4
Seonah Moon [Fri, 21 May 2021 07:27:27 +0000 (16:27 +0900)]
tests: add test for pubsub repetition

Change-Id: I73dc4a0290facc54ee423584a5d4e998fbb8bb92

2 years agoMerge "tests: Expose print functions" into tizen
seonah moon [Mon, 24 May 2021 11:07:22 +0000 (11:07 +0000)]
Merge "tests: Expose print functions" into tizen

2 years agovine-verifier: fix wrong parameter 01/258701/1
Cheoleun Moon [Mon, 24 May 2021 10:44:19 +0000 (19:44 +0900)]
vine-verifier: fix wrong parameter

Change-Id: I54d7f595860f9ab43304b136ad2c309e784d1e9c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agotests: Expose print functions 05/258605/3
Seonah Moon [Fri, 21 May 2021 05:02:40 +0000 (14:02 +0900)]
tests: Expose print functions

Change-Id: Ibbe00dd27d6b60f3010818f5356c8f3922b8134d

2 years agotool: Use a different timerfd per each dp 58/258558/2
Seonah Moon [Thu, 20 May 2021 07:03:53 +0000 (16:03 +0900)]
tool: Use a different timerfd per each dp

Change-Id: Ic0d922609c98bd430f557b525198b609f0b0ccfa

2 years agoMerge "Do not clone if security is NULL" into tizen
cheoleun moon [Thu, 20 May 2021 06:53:47 +0000 (06:53 +0000)]
Merge "Do not clone if security is NULL" into tizen

2 years agoVineQueue: modify pop() to operate like std::queue 77/258377/2
Seonah Moon [Fri, 14 May 2021 08:57:01 +0000 (17:57 +0900)]
VineQueue: modify pop() to operate like std::queue

Change-Id: I92f75a430848b630d9cc280d7d336749c26d122d

3 years agoDo not clone if security is NULL 18/258318/5
Cheoleun Moon [Thu, 13 May 2021 10:44:23 +0000 (19:44 +0900)]
Do not clone if security is NULL

Change-Id: I959db97652ebcb8850214248b51198e2277a3fbc
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoInvoke recv_cb() when all fragments of a message is arrived 17/258317/5
Seonah Moon [Thu, 13 May 2021 10:41:45 +0000 (19:41 +0900)]
Invoke recv_cb() when all fragments of a message is arrived

Change-Id: Ic5b01ee73c771503315e478b60e6d45f8aab9de9

3 years agoMerge "Remove ununsed enum(vine_data_path_type_e)" into tizen
seonah moon [Fri, 14 May 2021 07:08:14 +0000 (07:08 +0000)]
Merge "Remove ununsed enum(vine_data_path_type_e)" into tizen

3 years agoMerge "Rename vine-data-path functions for consistency" into tizen
seonah moon [Fri, 14 May 2021 07:08:11 +0000 (07:08 +0000)]
Merge "Rename vine-data-path functions for consistency" into tizen

3 years agoRemove ununsed enum(vine_data_path_type_e) 81/258181/1
Seonah Moon [Wed, 12 May 2021 02:33:54 +0000 (11:33 +0900)]
Remove ununsed enum(vine_data_path_type_e)

Change-Id: I2601a01927c826650a94fcd4ed407342e39db6e1

3 years agoMerge "Use gtest instead of gmock" into tizen accepted/tizen/unified/20210526.010314 submit/tizen/20210510.064912 submit/tizen/20210523.234938
cheoleun moon [Wed, 12 May 2021 02:17:42 +0000 (02:17 +0000)]
Merge "Use gtest instead of gmock" into tizen

3 years agoRename vine-data-path functions for consistency 76/258176/1
Seonah Moon [Wed, 12 May 2021 01:50:26 +0000 (10:50 +0900)]
Rename vine-data-path functions for consistency

Change-Id: I300799e4393f32a09efe5cb1b5545ff717fd8f49

3 years agoUse memmove to prevent memory overlapping 56/258156/1 submit/tizen/20210512.020301
Cheoleun Moon [Tue, 11 May 2021 10:10:22 +0000 (19:10 +0900)]
Use memmove to prevent memory overlapping

Change-Id: I1d7b95a72327b8d86a8b353b4dab0879ed59ee1d
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoAdd vine_dp_get_remote_ip 19/257919/3
Cheoleun Moon [Thu, 6 May 2021 10:40:36 +0000 (19:40 +0900)]
Add vine_dp_get_remote_ip

Change-Id: I36f6612643c6e4edbde615ff7af720972378429e
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoUse gtest instead of gmock 31/258131/1
Cheoleun Moon [Tue, 11 May 2021 05:19:44 +0000 (14:19 +0900)]
Use gtest instead of gmock

Change-Id: Idbf0ae4e98757a9f042ceef9a040ab8363942042
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoFix parsing of txt record 41/257841/1 accepted/tizen/unified/20210505.141431 submit/tizen/20210504.072230
Cheoleun Moon [Tue, 4 May 2021 07:04:23 +0000 (16:04 +0900)]
Fix parsing of txt record

Change-Id: If2ac2fb5a87a9c42910d189621b204ab65fc28f5
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agolibwebsockets: remove unused files 09/257709/1
Seonah Moon [Fri, 30 Apr 2021 02:19:25 +0000 (11:19 +0900)]
libwebsockets: remove unused files

Change-Id: Iea3f49d0b8cc4a62706b18feadf656b1b951f508

3 years agoPass a service name when connecting to a pubsub server 90/257490/3
Seonah Moon [Tue, 27 Apr 2021 02:00:28 +0000 (11:00 +0900)]
Pass a service name when connecting to a pubsub server

Change-Id: I0645a28898cac74aa8d7b715c7caa9e92885a471

3 years agoAdd peer joined/left callback 65/257465/1
Seonah Moon [Mon, 26 Apr 2021 09:22:49 +0000 (18:22 +0900)]
Add peer joined/left callback

Change-Id: I54bbf692560032b3b9f12b261f8f287012d34257

3 years agoFix coverity issues 34/257434/1 accepted/tizen/unified/20210427.085741 submit/tizen/20210426.035717
Cheoleun Moon [Mon, 26 Apr 2021 03:18:21 +0000 (12:18 +0900)]
Fix coverity issues

Change-Id: Ib5a0ca09a03d7dff840ead3e437c8668bd128ab4
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoMerge "verifier: clone the discovered vine_service" into tizen
cheoleun moon [Mon, 26 Apr 2021 02:14:01 +0000 (02:14 +0000)]
Merge "verifier: clone the discovered vine_service" into tizen

3 years agoverifier: clone the discovered vine_service 85/257385/2
Cheoleun Moon [Fri, 23 Apr 2021 08:05:10 +0000 (17:05 +0900)]
verifier: clone the discovered vine_service

Change-Id: I50b1e27e9fa163ee14129621c39d0536ade7611a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoHandle DP operation based on DP_OPEN_STATE 86/257386/2
Seonah Moon [Fri, 23 Apr 2021 08:08:07 +0000 (17:08 +0900)]
Handle DP operation based on DP_OPEN_STATE

Change-Id: Ie0d99153e03b57543b3ea632f0140b730c1f8eb9

3 years agoSend a single message when WRITEABLE state (#237) 54/257354/1
문선아/Tizen Platform Lab(SR)/Engineer/삼성전자 [Thu, 22 Apr 2021 10:37:24 +0000 (19:37 +0900)]
Send a single message when WRITEABLE state (#237)

* Send a single message when WRITEABLE state

* Update libwebsockets-plugin.cpp

* Remove write_request

* Check write queue size before requesting writable callback

Change-Id: I89317d7fc8dc39ccc2eeb3e9a864940b7184228f

3 years agoUse a service name to check already connected service 37/257137/4
Seonah Moon [Tue, 20 Apr 2021 02:05:54 +0000 (11:05 +0900)]
Use a service name to check already connected service

Change-Id: I22c6491a091ed6d750ec85f17b45053b681b8782

3 years agoAdd set/get_token plugin API 02/257002/4
Seonah Moon [Fri, 16 Apr 2021 08:08:43 +0000 (17:08 +0900)]
Add set/get_token plugin API

Change-Id: Ic0ffb001c9d20be9dba35ea11cc0597782d3883c

3 years agoFix crash issues 36/256936/4 accepted/tizen/unified/20210416.011800 submit/tizen/20210415.090745
Seonah Moon [Thu, 15 Apr 2021 06:27:53 +0000 (15:27 +0900)]
Fix crash issues

Change-Id: I04413f0cad969934f8cbaf3861cde409f6b00319

3 years agoUnset ip_resolved_cb on vine_service_destroy 35/256935/1 submit/tizen/20210415.061314
Cheoleun Moon [Thu, 15 Apr 2021 05:50:57 +0000 (14:50 +0900)]
Unset ip_resolved_cb on vine_service_destroy

Change-Id: I3bea15795b67256e9f646113d64f257714728cc8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agounittest: remove unused wrapper function 89/256889/1 accepted/tizen/unified/20210415.000533 submit/tizen/20210414.073506
Seonah Moon [Wed, 14 Apr 2021 07:31:32 +0000 (16:31 +0900)]
unittest: remove unused wrapper function

Change-Id: I69af0fd7e4c5bc325ebe3d3cecff06f066361b41

3 years agopubsub: create a disc handle for ip_resolve() 84/256884/2
Seonah Moon [Wed, 14 Apr 2021 06:54:35 +0000 (15:54 +0900)]
pubsub: create a disc handle for ip_resolve()

Change-Id: Ie693e2fea547fafc202ec9c5825ceff9ce4b265b

3 years agoMerge changes If464cbac,If043f6ea into tizen submit/tizen/20210414.043047
cheoleun moon [Wed, 14 Apr 2021 04:23:38 +0000 (04:23 +0000)]
Merge changes If464cbac,If043f6ea into tizen

* changes:
  Do not use memcpy for vine_service_s
  Clone the found service

3 years agoDo not use memcpy for vine_service_s 15/256815/6
Cheoleun Moon [Tue, 13 Apr 2021 11:17:22 +0000 (20:17 +0900)]
Do not use memcpy for vine_service_s

Change-Id: If464cbac64927bce1347a540fbd46d48071072c2
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoHandle a duplicated service name (#232) 07/256807/1
문선아/Tizen Platform Lab(SR)/Engineer/삼성전자 [Tue, 13 Apr 2021 09:28:15 +0000 (18:28 +0900)]
Handle a duplicated service name (#232)

* Handle a duplicated service name

* Consider null character appended automatically

Change-Id: If6cf46c6fe19179f7d98e09234911294fe0f0918

3 years agoClone the found service 01/256801/1
Cheoleun Moon [Tue, 13 Apr 2021 07:45:26 +0000 (16:45 +0900)]
Clone the found service

Change-Id: If043f6eaa55c05cfeb821fd8d69d737363f1df14
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoFix incorrect variable name 87/256787/1 accepted/tizen/unified/20210414.000932 submit/tizen/20210413.055832
Cheoleun Moon [Tue, 13 Apr 2021 05:28:08 +0000 (14:28 +0900)]
Fix incorrect variable name

Change-Id: Id5ffbaef058f40089f0bbec9737488effa1dd18c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCheck return value of lws_get_socket_fd 85/256785/1
Cheoleun Moon [Tue, 13 Apr 2021 04:43:21 +0000 (13:43 +0900)]
Check return value of lws_get_socket_fd

Change-Id: I86ae9d5f0c314af46a0f47832915b0aec325e239
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCreate disc_handle for each ip_resolving operation 84/256784/1
Cheoleun Moon [Tue, 13 Apr 2021 04:41:03 +0000 (13:41 +0900)]
Create disc_handle for each ip_resolving operation

Change-Id: I5bb1995d2be217b5f2aa4c291387c2a5bdd29240
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoSome changes for PSK (#228) 25/256725/1 accepted/tizen/unified/20210413.021236 submit/tizen/20210412.063618
문선아/Tizen Platform Lab(SR)/Engineer/삼성전자 [Mon, 12 Apr 2021 03:48:29 +0000 (12:48 +0900)]
Some changes for PSK (#228)

* Use calloc/free for auth frame

* Limit PSK length to 512

Change-Id: I17afa6dc51cffb463f8ef9e44e0725b8ff4dc06e

3 years agoFree allocated memories before strdup 21/256721/3
Cheoleun Moon [Mon, 12 Apr 2021 03:10:19 +0000 (12:10 +0900)]
Free allocated memories before strdup

Change-Id: Iba469a2a10df78a19af1c6107bdea240fdce999b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoLimits the file size to be sent to INT_MAX 20/256720/2
Cheoleun Moon [Mon, 12 Apr 2021 02:33:17 +0000 (11:33 +0900)]
Limits the file size to be sent to INT_MAX

Change-Id: Ia8ff7e3429364f5e645dc987fcf23125199773e6
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoUse localtime_r instead of localtime 19/256719/1
Cheoleun Moon [Mon, 12 Apr 2021 02:32:31 +0000 (11:32 +0900)]
Use localtime_r instead of localtime

Change-Id: I808747c6f88c42b2794a08bbcc2d0c0abf653eaa
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agotests: Free after use (3) 49/256649/2 accepted/tizen/unified/20210409.064102 submit/tizen/20210408.103639
Cheoleun Moon [Thu, 8 Apr 2021 10:26:41 +0000 (19:26 +0900)]
tests: Free after use (3)

Change-Id: Ia7c27f9713fb3b23ebbad43f8876682383f21eac
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoChange the package name to capi-network-vine 42/256642/1 submit/tizen/20210408.092019
Seonah Moon [Thu, 8 Apr 2021 09:17:04 +0000 (18:17 +0900)]
Change the package name to capi-network-vine

Change-Id: I3b9a7a196ba61bdb91b15dd5831d89bbbf7521e6

3 years agotests: Free after use (2) 38/256638/1 submit/tizen/20210408.090200
Cheoleun Moon [Thu, 8 Apr 2021 08:48:45 +0000 (17:48 +0900)]
tests: Free after use (2)

Change-Id: I59ecb802b1b4f79c3cc143b99589e4aa711b3a6a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoReduce MAX_VINE_EPOLL_EVENTS to 512 32/256632/1
Cheoleun Moon [Thu, 8 Apr 2021 07:56:02 +0000 (16:56 +0900)]
Reduce MAX_VINE_EPOLL_EVENTS to 512

Change-Id: I73ede551a16e4fb6bda8b78904892f95919a39da
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agotests: Free after use 31/256631/3
Cheoleun Moon [Thu, 8 Apr 2021 07:46:02 +0000 (16:46 +0900)]
tests: Free after use

Change-Id: I92b74905b6fc64567be9ae748f13bc1882b38074
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCasting for delete (2) 27/256627/1
Cheoleun Moon [Thu, 8 Apr 2021 07:36:31 +0000 (16:36 +0900)]
Casting for delete (2)

Change-Id: I9ae14dc0e433e2b35278a172b1a574cafac22a54
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCasting for delete 26/256626/1
Cheoleun Moon [Thu, 8 Apr 2021 07:19:06 +0000 (16:19 +0900)]
Casting for delete

Change-Id: Ifc3e1a2a78397452396ad1d6a1072c983dc73c3b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>