efl_io_copier_example: set loop as parent for Efl.Net.Dialer.Tcp

although it was working, the correct way is to set a loop provider as
Efl.Net.Dialer.Tcp object.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-08-23 19:59:24 -03:00
parent c4d09a7a34
commit 06983d8673
1 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ main(int argc, char **argv)
*/
const char *address = input_fname + strlen("tcp://");
Eina_Error err;
input = efl_add(EFL_NET_DIALER_TCP_CLASS, NULL,
input = efl_add(EFL_NET_DIALER_TCP_CLASS, ecore_main_loop_get(),
efl_event_callback_array_add(efl_self, input_cbs(), NULL), /* optional */
efl_event_callback_array_add(efl_self, dialer_cbs(), NULL) /* optional */
);
@ -560,7 +560,7 @@ main(int argc, char **argv)
*/
const char *address = output_fname + strlen("tcp://");
Eina_Error err;
output = efl_add(EFL_NET_DIALER_TCP_CLASS, NULL,
output = efl_add(EFL_NET_DIALER_TCP_CLASS, ecore_main_loop_get(),
efl_event_callback_array_add(efl_self, output_cbs(), NULL), /* optional */
efl_event_callback_array_add(efl_self, dialer_cbs(), NULL) /* optional */
);