#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;
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)..",
#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
* @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
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)
{
* @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
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__);
#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
#include "../../utc_negative_unitest.h"
#define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
#define ECORE_CON_SERVER_TIMEOUT 30
* @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
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)
{
* @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
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);
#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;
#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;
#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;
#include "../../utc_negative_unitest.h"
#define HOSTNAME "127.0.0.1"
-#define PORT 8080
+#define PORT 9876
static Eina_Bool startup_status = EINA_FALSE;
#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;
//#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;
#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;
#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;
#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;
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;
#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;
#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;
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)
{
{
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
{
* @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
* @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)
*
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));
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)
{
{
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
{
* @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").
*
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__);
}
}
- 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__);
}
#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"
{
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;