evas/cserve2: avoid useless SETOPT messages.
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 26 Jun 2013 08:47:41 +0000 (17:47 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Tue, 2 Jul 2013 07:58:10 +0000 (16:58 +0900)
commitdb6cba1429624968cf7f9bc49a508d2bb5d0b23f
tree195755931f3edf5d4fe90c22b76f974f2bef3be5
parentf9a7820e0240d166328576f7bd8a1ee16c9cd1d7
evas/cserve2: avoid useless SETOPT messages.

Most of the time, the SETOPT message is sent only
to carry 0 data. Let's add a flag to the OPEN message to
avoid useless socket calls.
Server-side: implement with message faking.
Also, fix image ID logic on client side:
 - alloc data entry asap,
 - assign image_id during call to OPEN

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
src/bin/evas/evas_cserve2_main.c
src/lib/evas/cserve2/evas_cs2.h
src/lib/evas/cserve2/evas_cs2_client.c