From: munkyu.im Date: Fri, 28 Jun 2013 09:14:05 +0000 (+0900) Subject: sdb: remove notifying to sdb server X-Git-Tag: 2.2.1_release~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d956e44ecf74d657ca933dc2af46b61e748495de;p=sdk%2Femulator%2Fqemu.git sdb: remove notifying to sdb server not qemu but sdb daemon will notify to sdb server Signed-off-by: munkyu.im --- diff --git a/tizen/src/guest_server.c b/tizen/src/guest_server.c index 1649d182ad..0a7e69e633 100644 --- a/tizen/src/guest_server.c +++ b/tizen/src/guest_server.c @@ -207,7 +207,6 @@ static void* run_guest_server(void* args) TRACE("----------------------------------------\n"); if (strcmp(command, "3\n" ) == 0) { TRACE("command:%s\n", command); - notify_sdb_daemon_start(); notify_sensor_daemon_start(); } else if (strcmp(command, "4\n") == 0) { diff --git a/tizen/src/sdb.c b/tizen/src/sdb.c index 26bbea8fe1..7ce32b4576 100644 --- a/tizen/src/sdb.c +++ b/tizen/src/sdb.c @@ -211,37 +211,3 @@ int sdb_loopback_client(int port, int type) return s; } - -void notify_sdb_daemon_start(void) { - - int s; - /* - * send a simple message to the SDB host server to tell it we just started. - * it should be listening on port 26099. - */ - char *targetname = g_path_get_basename(tizen_target_path); - char tmp[MAXPACKETLEN] = { 0 }; - // when connecting to loopback:26099, do not use tcp_socket_outgoing function - // tcp_socket_outgoing may occur "dns name service not known" in case of network unavaliable status. - s = sdb_loopback_client(SDB_HOST_PORT, SOCK_STREAM); - if (s < 0) { - INFO("can not create socket to talk to the SDB server.\n"); - INFO("SDB server might not be started yet.\n"); - free(targetname); - return; - } - - /* length is hex host:emulator:port: -> 0x13 = 20 */ - sprintf(tmp, "00%2xhost:emulator:%d:%s", 20 + strlen(targetname), tizen_base_port + 1, targetname); - INFO("message to send to SDB server: %s\n", tmp); - if (send(s, tmp, MAXPACKETLEN,0) < 0) { - ERR( "message sending to SDB server error!\n"); - perror("sdb.c: "); - } - - if (s >= 0){ - socket_close(s); - } - - free(targetname); -}