forked from enlightenment/efl
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:
parent
220ef2eb21
commit
a1526169e7
|
@ -427,7 +427,7 @@ main(int argc, char **argv)
|
||||||
*/
|
*/
|
||||||
const char *address = input_fname + strlen("tcp://");
|
const char *address = input_fname + strlen("tcp://");
|
||||||
Eina_Error err;
|
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, input_cbs(), NULL), /* optional */
|
||||||
efl_event_callback_array_add(efl_self, dialer_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://");
|
const char *address = output_fname + strlen("tcp://");
|
||||||
Eina_Error err;
|
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, output_cbs(), NULL), /* optional */
|
||||||
efl_event_callback_array_add(efl_self, dialer_cbs(), NULL) /* optional */
|
efl_event_callback_array_add(efl_self, dialer_cbs(), NULL) /* optional */
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue