* @{
* @defgroup ecore_con_socks_apply_always
* @li ecore_con_socks_apply_always()
- * @li ecore_con_client_port_get()
+ * @li ecore_con_server_port_get()
* @{
* @objective The positive test case checks that tested function successfully applies proxy to server to listen for connections.
* @n Input Data:
* @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 clients connected through port 8080
+ * @step 8 Check whether servers connected through port 8080
* @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 (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
}
- Ecore_Con_Server *svr, *cl1, *cl2, *cl3;
+ Ecore_Con_Server *svr, *sv1, *sv2, *sv3;
Ecore_Con_Socks *sock;
svr = ecore_con_server_add(ECORE_CON_REMOTE_TCP, ip, port, NULL);
proxy_count = 0;
ecore_con_socks_apply_always(sock);
- cl1 = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, ip, port, NULL);
- if (!cl1)
+ sv1 = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, ip, port, NULL);
+ if (!sv1)
{
ecore_con_socks4_remote_del(ip, port, username);
ecore_con_server_del(svr);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
- cl2 = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, ip, port, NULL);
- if (!cl2)
+ sv2 = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, ip, port, NULL);
+ if (!sv2)
{
ecore_con_socks4_remote_del(ip, port, username);
ecore_con_server_del(svr);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
}
- cl3 = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, ip, port, NULL);
- if (!cl3)
+ sv3 = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, ip, port, NULL);
+ if (!sv3)
{
ecore_con_socks4_remote_del(ip, port, username);
ecore_con_server_del(svr);
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.._%d_", __FILE__, __LINE__, proxy_count);
}
- ck_assert_msg(ecore_con_client_port_get(cl1) == 8080,
- "[TEST_FAIL]:: %s[%d] : Test has failed (client port is wrong = %d)..",
- __FILE__, __LINE__, ecore_con_client_port_get(cl1));
+ ck_assert_msg(ecore_con_server_port_get(sv1) == 8080,
+ "[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_client_port_get(cl2) == 8080,
- "[TEST_FAIL]:: %s[%d] : Test has failed (client port is wrong = %d)..",
- __FILE__, __LINE__, ecore_con_client_port_get(cl2));
+ ck_assert_msg(ecore_con_server_port_get(sv2) == 8080,
+ "[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_client_port_get(cl3) == 8080,
- "[TEST_FAIL]:: %s[%d] : Test has failed (client port is wrong = %d)..",
- __FILE__, __LINE__, ecore_con_client_port_get(cl3));
+ ck_assert_msg(ecore_con_server_port_get(sv3) == 8080,
+ "[TEST_FAIL]:: %s[%d] : Test has failed (server port is wrong = %d)..",
+ __FILE__, __LINE__, ecore_con_server_port_get(sv3));
ecore_con_socks4_remote_del(ip, port, username);
ecore_con_server_del(svr);