efl_net_dialer_udp_example: be more 'correct' using events to read/write.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 21 Oct 2016 11:53:17 +0000 (09:53 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 21 Oct 2016 15:33:27 +0000 (13:33 -0200)
commit3cb15c17e01bd86220891b3ad4ea755f934e19d6
tree4e6dac2729ff13ec5668f4be86152d56323f5e3a
parentf57316655cf5bc7de0e8278bc48e252296d485ee
efl_net_dialer_udp_example: be more 'correct' using events to read/write.

instead of blindly reading and writing, which can lead to hangs due no
server, let's use can_read and can_write to do the operations, this
won't let us believe we can read when we can't.

it's also the recommended approach, so let's show that in the examples
so users don't copy&paste incorrect stuff :-)
src/examples/ecore/efl_net_dialer_udp_example.c