Modify TCP to UDP on thumb-server. 00/36400/1
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 6 Mar 2015 04:24:26 +0000 (13:24 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 6 Mar 2015 04:26:41 +0000 (13:26 +0900)
Change-Id: I5b60b681bb04e8f19b371e63a1915c217342987f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
server/thumb-server-internal.c

index 860bc6a..1553604 100755 (executable)
@@ -421,9 +421,9 @@ gboolean _thumb_server_send_msg_to_agent(int msg_type)
        ms_thumb_server_msg send_msg;
 
 #ifdef _USE_UDS_SOCKET_
-       if (ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_10, &sock, MS_THUMB_COMM_PORT) < 0) {
+       if (ms_ipc_create_client_socket(MS_PROTOCOL_UDP, MS_TIMEOUT_SEC_10, &sock, MS_THUMB_COMM_PORT) < 0) {
 #else
-       if (ms_ipc_create_client_socket(MS_PROTOCOL_UDP, MS_TIMEOUT_SEC_10, &sock) < 0) {
+       if (ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_10, &sock) < 0) {
 #endif
                thumb_err("ms_ipc_create_server_socket failed");
                return FALSE;