error check server creation
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 22 Sep 2010 23:58:31 +0000 (23:58 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 22 Sep 2010 23:58:31 +0000 (23:58 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@52612 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

examples/ecore_con_server_example.c

index ba9e55d..22010db 100644 (file)
@@ -68,8 +68,8 @@ int main()
 */
 
 /* to use simple tcp with ssl/tls, use this line */
-   ecore_con_server_add(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED, "127.0.0.1", 8080, NULL);
-
+   if (!ecore_con_server_add(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_SSL3, "127.0.0.1", 8080, NULL))
+     exit(1);
 /* set event handler for client connect */
    ecore_event_handler_add(ECORE_CON_EVENT_CLIENT_ADD, (Ecore_Event_Handler_Cb)_add, NULL);
 /* set event handler for client disconnect */