ecore_con/ecore_ipc: change port number. 44/250044/1
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 18 Dec 2020 10:23:01 +0000 (19:23 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Fri, 18 Dec 2020 10:51:37 +0000 (19:51 +0900)
Sometimes 8080 port is already occupied, so change port number to 9876.

Change-Id: I80e2c3149a85820ed288b6900afac38de622dd42

24 files changed:
TC/ecore/ecore_con/utc_ecore_con_client_ip_get.c
TC/ecore/ecore_con/utc_ecore_con_client_server_get.c
TC/ecore/ecore_con/utc_ecore_con_client_uptime_get.c
TC/ecore/ecore_con/utc_ecore_con_server_add.c
TC/ecore/ecore_con/utc_ecore_con_server_client_limit_set.c
TC/ecore/ecore_con/utc_ecore_con_server_clients_get.c
TC/ecore/ecore_con/utc_ecore_con_server_connect.c
TC/ecore/ecore_con/utc_ecore_con_server_connected_get.c
TC/ecore/ecore_con/utc_ecore_con_server_data_get.c
TC/ecore/ecore_con/utc_ecore_con_server_data_set.c
TC/ecore/ecore_con/utc_ecore_con_server_del.c
TC/ecore/ecore_con/utc_ecore_con_server_flush.c
TC/ecore/ecore_con/utc_ecore_con_server_ip_get.c
TC/ecore/ecore_con/utc_ecore_con_server_name_get.c
TC/ecore/ecore_con/utc_ecore_con_server_port_get.c
TC/ecore/ecore_con/utc_ecore_con_server_send.c
TC/ecore/ecore_con/utc_ecore_con_server_timeout_get.c
TC/ecore/ecore_con/utc_ecore_con_server_timeout_set.c
TC/ecore/ecore_con/utc_ecore_con_server_uptime_get.c
TC/ecore/ecore_con/utc_ecore_con_socks4.c
TC/ecore/ecore_con/utc_ecore_con_socks5.c
TC/ecore/ecore_con/utc_ecore_con_ssl_server_crl_add.c
TC/ecore/ecore_con/utc_ecore_con_url.c
TC/ecore/ecore_ipc/utc_ecore_ipc_server_ip_get.c

index 89a18d6c7d530052505d96f9bf0d934153a584b3..9b60ddfac7bf58cf4cf86359639d18033b604d63 100644 (file)
@@ -8,7 +8,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 #define ECORE_CON_SERVER_TIMEOUT 30
 
 static Eina_Bool startup_status = EINA_FALSE;
index c20a55f3aa9bb61eb8b5dc52613af4e3b9dbc381..d26140adb5dbd9a3dd2ada8d037711e6ab9733a9 100644 (file)
@@ -336,7 +336,7 @@ START_TEST(utc_ecore_con_client_server_get_p)
    char sdata[] = "Server_info";
    Ecore_Con_Type compl_type = ECORE_CON_REMOTE_TCP;
    const char *name = "127.0.0.1";
-   int server_port = 8080;
+   int server_port = 9876;
 
    ck_assert_msg(startup_status != EINA_FALSE,
                  "[TEST_FAIL]:: %s[%d] : Test has failed (startup procedure fail)..",
index c6557a02a39f17f5a065869145d3f67c29f860bc..08f28b56da935ba136e1de2030e4d5fc98747ea2 100755 (executable)
@@ -7,7 +7,7 @@
 #include <math.h>\r
 \r
 #define HOSTNAME "127.0.0.1"\r
-#define PORT 8080\r
+#define PORT 9876\r
 #define CONNECTION_TIME 1.0\r
 \r
 #define ECORE_CON_SERVER_TIMEOUT 30\r
index 207f87a7b6291ea224d7c9e897a8cbe4fcfffc7b..4ff7ea4982b24347e3edfe8d19ab921eea474080 100644 (file)
@@ -41,7 +41,7 @@ teardown(void)
  * @n Input Data:
  * @li the connection type (it is defined by ECORE_CON_REMOTE_TCP value);
  * @li socket name ("127.0.0.1");
- * @li port (8080);
+ * @li port (9876);
  * @li user data (NULL).
  *
  * @procedure
@@ -62,7 +62,7 @@ START_TEST(utc_ecore_con_server_add_p)
 
    Ecore_Con_Server *svr;
 
-   svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "127.0.0.1", 8080, NULL);
+   svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "127.0.0.1", 9876, NULL);
 
    if (svr == NULL)
      {
@@ -79,7 +79,7 @@ END_TEST
  * @n Input Data:
  * @li the connection type (it is defined by ECORE_CON_REMOTE_TCP value);
  * @li invalid socket name ("");
- * @li port (8080);
+ * @li port (9876);
  * @li user data (NULL).
  *
  * @procedure
@@ -104,7 +104,7 @@ START_TEST(utc_ecore_con_server_add_n)
 
    Ecore_Con_Server *svr;
 
-   svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "", 8080, NULL);
+   svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, "", 9876, NULL);
    if (svr != NULL)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
index a6ce2d95f36f6b7bae47ec9cd523e9a3e360959b..845ed1c28c8b144cded1766c041822eac8b35b5a 100644 (file)
@@ -9,7 +9,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 #define CLIENT_LIMIT 3
 #define CLIENT_MAX 10
 
index 286bfd6790f2e94a8654597ef8a847ba3a7662af..79e3d3cc553d272b621a921880ac1be886ee551b 100644 (file)
@@ -7,7 +7,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 #define ECORE_CON_SERVER_TIMEOUT 30
 
 
index cfdb5daa76edb2722d29f665509e137dba6f3d27..5932a15e8f27c379fbfd6668bd78192a0fc273f0 100644 (file)
@@ -42,7 +42,7 @@ teardown(void)
  * @n Input Data:
  * @li the connection type (it is defined by ECORE_CON_REMOTE_TCP value);
  * @li server hostname ("127.0.0.1");
- * @li port (8080);
+ * @li port (9876);
  * @li user data (NULL).
  *
  * @procedure
@@ -63,7 +63,7 @@ START_TEST(utc_ecore_con_server_connect_p)
 
    Ecore_Con_Server *svr;
 
-   svr = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "127.0.0.1", 8080, NULL);
+   svr = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "127.0.0.1", 9876, NULL);
 
    if (svr == NULL)
      {
@@ -80,7 +80,7 @@ END_TEST
  * @n Input Data:
  * @li the connection type (it is defined by ECORE_CON_REMOTE_TCP value);
  * @li invalid socket name (NULL);
- * @li port (8080);
+ * @li port (9876);
  * @li user data (NULL).
  *
  * @procedure
@@ -106,10 +106,10 @@ START_TEST(utc_ecore_con_server_connect_n)
    Eina_Bool ok = EINA_FALSE;
    Ecore_Con_Server *svr;
 
-   svr = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, NULL, 8080, NULL);
+   svr = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, NULL, 9876, NULL);
    if (svr == NULL)
      {
-        svr = ecore_con_server_connect(NONEXISTING_ECORE_CON, "127.0.0.1", 8080, NULL);
+        svr = ecore_con_server_connect(NONEXISTING_ECORE_CON, "127.0.0.1", 9876, NULL);
         if (svr == NULL)
           {
              svr = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, "127.0.0.1", -80, NULL);
index 190bdc0c63696d0ae5e3c43e0cc5889dc91551d5..3b0d4cb433e225b3b6e8cebf237e320d7c15bc75 100644 (file)
@@ -7,7 +7,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_loop;
index 449424182c68a4ab447d1e4a5d3004a2c6b15d22..9b357bc47d79f263ef14da1cb57c8c664ac56b01 100644 (file)
@@ -7,7 +7,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *svr = NULL;
index edec2a87cad07cc0b30395dbe32a4a27722bc222..fe2632283fca351cc3b1d7dc33c43a853e156d2c 100644 (file)
@@ -7,7 +7,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *svr = NULL;
index dd9293b8cb01c6441151a57a40b8cd4184c73854..450fe9c608d24e147d0e7580b1c9067d7fe4498c 100644 (file)
@@ -7,7 +7,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 
index 868a65873221ab4154d21354ca20df846b537bd5..0b8b82618ab1ad8600ba3d5affa289b1829dc584 100644 (file)
@@ -8,7 +8,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *srv = NULL;
index 62a388feaef724fc5b3830b17f58dd0b10b7270d..df9f06dcb866ccf3ee72baaf8d60da33870be2d2 100644 (file)
@@ -10,7 +10,7 @@
 
 //#define HOSTNAME "yandex.ru"
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 #define ECORE_CON_SERVER_TIMEOUT 30
 
 static Eina_Bool startup_status = EINA_FALSE;
index 89c5cfaf38e9815aaf2402afbc8b5d88f87e80e9..f38c2a242676b767ef5e049313a728ab4008008d 100644 (file)
@@ -9,7 +9,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *svr = NULL;
index fe926fa0dcb00b067128ee02c6f5a47e070103be..7c46a92e101401039597abf7e77a9f7e0a0fc702 100644 (file)
@@ -9,7 +9,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *svr = NULL;
index d3b4d7869d8a85ae4877d2f2532680176ac25d39..9cb0d4910ab14dea5e29b98191950fe98fd4deb2 100644 (file)
@@ -8,7 +8,7 @@
 #include "../../utc_negative_unitest.h"
 
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *srv = NULL;
index 83898f48066f6a4bb6ca278831ba4b8ab033151b..450351976345e442b860f3781af18509dd793544 100644 (file)
@@ -28,7 +28,7 @@ setup(void)
    printf(" ============ Startup ============ \n");
    if (ecore_con_init() > 0)
      {
-        svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, HOSTNAME, 8080, NULL);
+        svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, HOSTNAME, 9876, NULL);
         if (svr != NULL)
           {
              startup_status = EINA_TRUE;
index 481c62822a02737ce6a89db49eb430d72a998264..ee03416ef763e0a32533808636774accb218ed68 100644 (file)
@@ -8,7 +8,7 @@
 
 #define TIMEOUT 10.0
 #define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Con_Server *svr = NULL;
index 3cd51c53f493b39cbf3555e933f93e95eb52e300..86395393d5cbe8e8253b53b7a18d0ac875043d0f 100644 (file)
@@ -7,7 +7,7 @@
 #include <math.h>
 
 #define HOSTNAME "yandex.ru"
-#define PORT 8080
+#define PORT 9876
 #define CONNECTION_TIME 0.5
 
 static Eina_Bool startup_status = EINA_FALSE;
index 5e4ee3f81b7028a2c6ae560344310f7c85cb14fc..dd4450c8e4c9d80a51a7da134707fb60cfdd86e9 100644 (file)
@@ -11,7 +11,7 @@ static int repeat_count = 0;
 
 static const char *ip       = "127.0.0.1";
 static const char *username = "username";
-static const int   port     =  8080;
+static const int   port     =  9876;
 
 static Eina_Bool data_cb(void *data, int type, void *event)
 {
@@ -39,7 +39,7 @@ setup(void)
 {
    printf(" ============ Startup ============ \n");
 
-   if (setenv("ECORE_CON_SOCKS_V4", "username@127.0.0.1-8080:1", 1))
+   if (setenv("ECORE_CON_SOCKS_V4", "username@127.0.0.1-9876:1", 1))
      startup_status = EINA_FALSE;
    else
      {
@@ -72,7 +72,7 @@ teardown(void)
  * @objective The positive test case checks that tested function successfully creates a server to listen for connections.
  * @n Input Data:
  * @li 127.0.0.1 The ip address of the proxy;
- * @li 8080 The port to connect to on the proxy
+ * @li 9876 The port to connect to on the proxy
  * @li Username used for the proxy ("username").
  *
  * @procedure
@@ -149,7 +149,7 @@ END_TEST
  * @step 5 Call ecore_con_socks_apply_always for created sock.
  * @step 6 Connect to server through proxy 3 times.
  * @step 7 Check if ECORE_CON_EVENT_CLIENT_DATA was invoked 3 times.
- * @step 8 Check whether servers connected through port 8080
+ * @step 8 Check whether servers connected through port 9876
  * @step 9 Delete SOCKS v4 proxy from the proxy list (call ecore_con_socks4_remote_del)
  * @step 10 Check whether added proxy doesn't exist (call ecore_con_socks4_remote_exists)
  *
@@ -237,15 +237,15 @@ START_TEST(utc_ecore_con_socks4_apply_always_p)
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.._%d_", __FILE__, __LINE__, proxy_count);
      }
 
-   ck_assert_msg(ecore_con_server_port_get(sv1) == 8080,
+   ck_assert_msg(ecore_con_server_port_get(sv1) == 9876,
                  "[TEST_FAIL]:: %s[%d] : Test has failed (server port is wrong = %d)..",
                  __FILE__, __LINE__, ecore_con_server_port_get(sv1));
 
-   ck_assert_msg(ecore_con_server_port_get(sv2) == 8080,
+   ck_assert_msg(ecore_con_server_port_get(sv2) == 9876,
                  "[TEST_FAIL]:: %s[%d] : Test has failed (server port is wrong = %d)..",
                  __FILE__, __LINE__, ecore_con_server_port_get(sv2));
 
-   ck_assert_msg(ecore_con_server_port_get(sv3) == 8080,
+   ck_assert_msg(ecore_con_server_port_get(sv3) == 9876,
                  "[TEST_FAIL]:: %s[%d] : Test has failed (server port is wrong = %d)..",
                  __FILE__, __LINE__, ecore_con_server_port_get(sv3));
 
index 515c9f8b1641dafb9090c833c46bea9cbe2fea32..0204f7aca43200ed7942f224f04f635d85a1acc9 100644 (file)
@@ -11,7 +11,7 @@ static int proxy_count = 0;
 static const char *ip       = "127.0.0.1";
 static const char *username = "username";
 static const char *password =  NULL;
-static const int   port     =  8080;
+static const int   port     =  9876;
 
 static Eina_Bool data_cb(void *data, int type, void *event)
 {
@@ -39,7 +39,7 @@ setup(void)
 {
    printf(" ============ Startup ============ \n");
 
-   if (setenv("ECORE_CON_SOCKS_V5", "username@127.0.0.1-8080:1", 1))
+   if (setenv("ECORE_CON_SOCKS_V5", "username@127.0.0.1-9876:1", 1))
      startup_status = EINA_FALSE;
    else
      {
@@ -72,7 +72,7 @@ teardown(void)
  * @objective The positive test case checks that tested function successfully creates a server to listen for connections.
  * @n Input Data:
  * @li 127.0.0.1 The ip address of the proxy;
- * @li 8080 The port to connect to on the proxy
+ * @li 9876 The port to connect to on the proxy
  * @li Username used for the proxy ("username").
  * @li Password used for the proxy ("password").
  *
index 4abb0729e65420ecb679ba2468b7164b5ded8b02..995205ff0debccdeed18f192c9e283d66f7189de 100644 (file)
@@ -141,7 +141,7 @@ START_TEST(utc_ecore_con_ssl_server_crl_add_p)
    Ecore_Con_Server *client  = NULL;
    Ecore_Con_Type compl_type = ECORE_CON_REMOTE_TCP | ECORE_CON_LOAD_CERT | ECORE_CON_USE_MIXED;
 
-   if (!(svr = ecore_con_server_add(compl_type, "127.0.0.1", 8080, NULL)))
+   if (!(svr = ecore_con_server_add(compl_type, "127.0.0.1", 9876, NULL)))
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed ..", __FILE__, __LINE__);
      }
@@ -185,7 +185,7 @@ START_TEST(utc_ecore_con_ssl_server_crl_add_p)
      }
 
 
-   if (!(client = ecore_con_server_connect(compl_type, "127.0.0.1", 8080, NULL)))
+   if (!(client = ecore_con_server_connect(compl_type, "127.0.0.1", 9876, NULL)))
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed ..", __FILE__, __LINE__);
      }
index c82cbccc87989cfb8cbb9b18ca0b58c033d6b1bb..5cbd363668c97845a706daf283201f33fcf246f4 100644 (file)
@@ -12,7 +12,7 @@
 #define COOKIEJAR "testcookieXXXXXX.jar"
 #define ECORE_CON_HTTP_TEST_URL "http://anonymous:guest@google.com"
 #define ECORE_CON_FTP_TEST_URL "ftp://anonymous:test_pass@ftp.example.com?file=filename&directory=dir"
-#define PROXY_NAME "socks5://127.0.0.1:8080"
+#define PROXY_NAME "socks5://127.0.0.1:9876"
 #define PROXY_USER_NAME "anonymous"
 #define PROXY_PASSWORD "test_password"
 #define CA "server.pem"
index ceccd1b6b218c212b4c1b4d9380497ddd174edd8..add2ce1936a4a29ee8af080ff0b6dc1d5167856d 100644 (file)
@@ -58,10 +58,10 @@ setup(void)
      {
         if ((ecore_ipc_init() > 0) && (ecore_con_init() > 0))
           {
-             server = ecore_ipc_server_add(ECORE_IPC_REMOTE_SYSTEM, "127.0.0.1", 8080, NULL);
+             server = ecore_ipc_server_add(ECORE_IPC_REMOTE_SYSTEM, "127.0.0.1", 9876, NULL);
              if (server != NULL)
                {
-                  if ((server = ecore_ipc_server_connect(ECORE_IPC_REMOTE_SYSTEM, "127.0.0.1", 8080, NULL)) != NULL)
+                  if ((server = ecore_ipc_server_connect(ECORE_IPC_REMOTE_SYSTEM, "127.0.0.1", 9876, NULL)) != NULL)
                     {
                        WAIT_FOR(0.25);
                        startup_status = EINA_TRUE;