efl_net_dialer_websocket: EFL now does WebSocket!
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Tue, 30 Aug 2016 03:28:00 +0000 (00:28 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 2 Sep 2016 03:08:50 +0000 (00:08 -0300)
commite12afd772cef959ae1e58746f3bb41b26da30744
tree82a23663fb1c47e45706b0fdeb0cc669743bb3c7
parent57e765a758243ae326db1d8393242717b9fa2b04
efl_net_dialer_websocket: EFL now does WebSocket!

The Efl.Net.Dialer.Websocket is just like other Efl.Net.Dialers: you
can dial, you can close, monitor connected/address resolved and so
on. And you can use WebSocket primitives and events such as
text_send(), binary_send(), ping() and close_request() (since
WebSockets use a close process where you should state a close
reason). See efl_net_dialer_websocket_example.c

Even if WebSocket is a message-based protocol (like "packets" from
UDP), you can use efl_net_dialer_websocket_streaming_mode_set() to
tell it to handle text or binary messages as a stream. Then all the
Efl.Io.Reader and Efl.Io.Writer APIs work as expected, see
efl_io_copier_example.c updates.
src/Makefile_Ecore_Con.am
src/examples/ecore/.gitignore
src/examples/ecore/Makefile.am
src/examples/ecore/efl_io_copier_example.c
src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c [new file with mode: 0644]
src/examples/ecore/efl_net_dialer_websocket_example.c [new file with mode: 0644]
src/lib/ecore_con/Ecore_Con_Eo.h
src/lib/ecore_con/ecore_con_url.c
src/lib/ecore_con/efl_net_dialer_websocket.c [new file with mode: 0644]
src/lib/ecore_con/efl_net_dialer_websocket.eo [new file with mode: 0644]