summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ecore_con: Ecore_Con_Server now on top of Efl_Net!devs/barbieri/jenkinsGustavo Sverzut Barbieri2016-12-0918-6553/+2652
| | | | | | | | | | | | | | | | | This is a major work and unfortunately couldn't be split into smaller pieces as old code was highly coupled. Ecore_Con_Server is now a wrapper around Efl_Net_Dialer_Simple (ecore_con_server_connect()) and Efl_Net_Server_Simple (ecore_con_server_add()), doing all that the original version did with some fixes so ecore_con_ssl_server_upgrade() and ecore_con_ssl_client_upgrade() are more usable -- see the examples and -t/--type=tcp+ssl. I tried to be bug-compatible, with code annotations where things doesn't make sense. This was based on ecore_con_suite tests and some manual experimenting with the examples, these can be helpful if you find regressions (report/assign to me).
* ecore_con_server_example: add --socket-activatedGustavo Sverzut Barbieri2016-12-091-0/+6
|
* ecore_con_server_example: add tcp+ssl, upgrades a live client.Gustavo Sverzut Barbieri2016-12-091-1/+54
| | | | | | | | | | | | | | add a new -t/--type=tcp+ssl, there you can send "Upgrade: SSL\n" to request the server to start the handshake. This can be paired with the ecore_con_client_example, there you can type: Upgrade: SSL\n STARTTLS\n The second is a dialer local command to upgrade it to SSL, matching what the server expects.
* ecore_con_client_example: allow tcp->ssl upgrades.Gustavo Sverzut Barbieri2016-12-091-24/+97
| | | | | | | | | | | The example now offers --type=tcp+ssl, in this case it won't send a "hello!" message to avoid messing with the handshake. Once the client (dialer) receives the user command STARTTLS (--starttls-local-command), then it will upgrade the connection. Usually in real life you need to send some command to server, such as upgrade, STARTTLS and then upgrade... unless you connect to a SSL-only server (ie: ecore_con_server_example --type=ssl).
* efl_net_server_unix: do not mkpath for abstract sockets.Gustavo Sverzut Barbieri2016-12-091-1/+2
|
* efl_net_dialer: emit 'resolved' even if connection failed.Gustavo Sverzut Barbieri2016-12-093-2/+28
| | | | | | If we resolved the address but couldn't connect, use efl_net_socket_address_remote_set() and emit EFL_NET_DIALER_EVENT_RESOLVED.
* efl_net: optimize serving of IP addresses.Gustavo Sverzut Barbieri2016-12-094-57/+115
| | | | | | | | If we can parse the IP using inet_pton() and the port, there is no reason to call getaddrinfo() in a thread. This is required since ecore_con_suite (for ecore_con-over-efl_net) will assume the server is running as soon as it's created.
* efl_io_copier: callbacks may close the copier.Gustavo Sverzut Barbieri2016-12-091-1/+14
| | | | direct or indirect events may trigger the user to close the buffer.
* efl_io_buffer: callbacks may close the buffer.Gustavo Sverzut Barbieri2016-12-091-0/+13
| | | | | direct or indirect events (ie: can_read_set/can_write_set) may trigger the user to close the buffer.
* efl_io_queue: callbacks may close the queue.Gustavo Sverzut Barbieri2016-12-091-0/+6
| | | | | | For example, _efl_io_queue_update_cans() triggers "can_read,changed" and from there users may close the queue, in such case we shouldn't set can_write.
* efl_io_buffered_stream: del inner_io if we're the parent.Gustavo Sverzut Barbieri2016-12-091-1/+4
| | | | This is a nice convenience if inner_io was reparented to the wrapper.
* efl_net_server_simple: fix leak reported by eo_debugGustavo Sverzut Barbieri2016-12-091-0/+1
| | | | eo_debug now reports leaked objects, which is very nice :-)
* efl_net_dialer_socket: allow us to create a dialer from existing object.Gustavo Sverzut Barbieri2016-12-093-3/+35
| | | | | | | | | If we want to upgrade a dialer, then we must have a way to know if that socket has already adopted another socket so we don't create it. We can't simply use efl_net_socket_ssl, otherwise we'd miss some methods such as efl_net_dialer_address_dial_get() and events such as connected.
* efl_net_socket_fd: do not close stdout if nothing was set.Gustavo Sverzut Barbieri2016-12-091-1/+2
| | | | | | | | | if we create an object, say a TCP dialer, and don't connect/bind, then we have no FD (=0). If we set FD to INVALID_SOCKET on start, other parts of the code will fail since they consider that "closed", but we're not closed yet. Then check for family == AF_UNSPEC && fd == 0, if so don't close it.
* efl_net_ssl: do not access torn down sockets.Gustavo Sverzut Barbieri2016-12-092-4/+33
| | | | | | OpenSSL crashes if given a NULL pointer, then be safe and remember if we did the tear down -- print error so bugs can be identified more easily.
* efl_net_ssl_conn-openssl: fix dlsym() for X509_check_ip_asc.Gustavo Sverzut Barbieri2016-12-091-1/+1
| | | | | | | At least in ArchLinux the function has no "_" in the symbol name, matching perfectly what's in the header. If in other systems it misses such symbol, then check for both.
* ethumb_slave: fix work on WindowsAndrii Kroitor2016-12-091-0/+24
| | | | | Ecore_Fd_Handler doesn't work on Windows as expected. Replaced it with Ecore_Win32_Handler on Windows.
* ethumb: fix absolute path generationAndrii Kroitor2016-12-091-69/+15
| | | | | replace _ethumb_build_absolute_path with eina_file_path_sanitize It makes same thing and works on Windows correctly.
* elm: move Elm.Icon.Type to elm_generalDaniel Kolesa2016-12-097-14/+12
| | | | | This unbreaks installed eo file database as certain installed eo files import elm_icon which is not installed, causing parse errors.
* Fix typo in doxygen about ecore_idler_addJihoon Kim2016-12-091-1/+1
|
* tests: ecore: detect if the timeout test runs on Jenkins and increase ↵Stefan Schmidt2016-12-091-1/+21
| | | | | | | | | | | | allowed offset From time to time we run into trouble with this test. It goes over the, already increased, limit on Jenkins. Most likely due to high load on the server. Neither Cedric nor me have been able to pin this down on local runs and we already had increased it from the initial 0.01 to 0.02 but just today we hit 0.38. What we do now is to detect if we run on our jenkins and increase the allowed value while having the intial lower value back for normal local runs.
* edje_pick: export aliases and entire dependency listVitalii Vorobiov2016-12-091-6/+44
| | | | | | | | | | A lot of cases were missed, cases that are making resulting edj file useless. > Now export all aliases > If group "1" source of group "2" which is source of group "3", it will > be imported as well! @fix
* edje_pick: use correct id's for exported groupsVitalii Vorobiov2016-12-091-3/+4
| | | | @fix
* eina: add free cb to eina_iterator_filter_newMarcel Hollerbach2016-12-093-3/+50
| | | | if you allocate memory for the data param data you can free it in this callback.
* elm_entry: Init cursor position when entry text set.JEONGHYUN YUN2016-12-091-0/+2
| | | | | | | | | | | | Summary: Cursor position should be initialized because entry will be cleared when entry text set. Reviewers: woohyun, id213sin Reviewed By: id213sin Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4469
* eina: Set magic number in eina_file_virtualizeJean-Philippe Andre2016-12-091-0/+1
| | | | This fixes make check
* evas: Fix compilation after @cedric's "fix"Jean-Philippe Andre2016-12-093-0/+98
| | | | Don't forget git add!
* evas: refactor swap mode info get.Cedric Bail2016-12-088-241/+18
|
* evas-gl_cocoa: fix complete b0rkage of the engineJean Guyomarc'h2016-12-082-6/+10
| | | | | 73b308fb66f871b93ef8e324997872e3bf175906 slaughtered the gl_cocoa engine. It's now back to life, lighter and shinier.
* elput: Improve checks for keyboard & pointer devicesChris Michael2016-12-081-2/+4
| | | | | | | | | | | | | Some devices reported by libinput show up as both keyboard and mouse, even tho they are physically only just a keyboard or just a mouse. When a device gets added, we can verify if it is actually a mouse by checking if the device has BTN_LEFT (and for keyboards, check KEY_ENTER). This stops us from getting multiple mouse pointers reported when we really only have one. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-wl2: Minor formatting fixChris Michael2016-12-081-6/+7
| | | | | | NB: No functional changes Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore_con_server_example: show client errors.Gustavo Sverzut Barbieri2016-12-081-0/+10
|
* ecore_con_client_example: allow no-ssl verify and print errors.Gustavo Sverzut Barbieri2016-12-081-1/+21
| | | | | | | allow to not verify server certificate or hostname, so we can test with local, self-signed certificates. Also print errors, so we can say that the server handshake failed.
* efl_net_server_ssl: monitor context del and unref on destructor.Gustavo Sverzut Barbieri2016-12-081-0/+17
| | | | | we're leaking ssl_ctx on destruction, also monitor it so we don't access stale data.
* efl_net_ssl_context: check and document constructor only properties.Gustavo Sverzut Barbieri2016-12-082-5/+25
| | | | | The context is shared and thus these lists should be static once object is created.
* efl_net_dialer_ssl: fix copy&paste too much.Gustavo Sverzut Barbieri2016-12-081-3/+3
|
* eo_lifecycle: on log level info (3), show leaked objects.Gustavo Sverzut Barbieri2016-12-081-0/+36
| | | | | | | Since we keep a log of created and deleted objects, we can walk the log and see which were leaked. As this is expensive, do only if log level is greater than 3 (INFO, DEBUG...), with backtrace of object creation being displayed as backtrace if running as level 4 (DEBUG).
* elm_win: update opaque region on resize when borderlessMike Blumenkrantz2016-12-081-0/+2
| | | | this fixes broken sizing on borderless windows
* elua: add bindings to new Eolian APIsDaniel Kolesa2016-12-081-0/+143
|
* evas-wayland-egl: Remove unused field from Outbuf structureChris Michael2016-12-081-1/+0
| | | | | | | | This patch just removes the 'evas' field from the Outbuf structure. This should have actually gone in on the previous patch but I missed removing it :( Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-wayland-shm: Remove unused variblesChris Michael2016-12-081-4/+1
| | | | | | | These variables are unused (as reported by gcc), and 'ob' is not really needed in eng_update so remove that also. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* elementary: atspi accepts UTF-8 textShinwoo Kim2016-12-081-2/+0
|
* evas-wayland-egl: Cleanup wayland_egl engine and fix build breakChris Michael2016-12-083-10/+15
| | | | | | | | | | | | A previous patch to refactor setup stage and reduce complexity actually introduced several build breaks. This patch fixes the build break for wayland-egl. ref 73b308fb66f871b93ef8e324997872e3bf175906 BAD CEDRIC !!!!! Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-gl-drm: Cleanup evas-gl-drm engine build and fix build breakChris Michael2016-12-082-22/+17
| | | | | | | | | | A previous patch from some french guy broke building of the gl_drm engine. This patch fixes the build break and cleans up unused variables, etc. ref 73b308fb66f871b93ef8e324997872e3bf175906 Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-drm: Remove unused variables and fix build breakChris Michael2016-12-081-5/+2
| | | | | | | | | Seems Cedric's patch for refactoring setup stage broke building for the evas drm engine. This patches fixes the issue. ref 73b308fb66f871b93ef8e324997872e3bf175906 Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore_con_server_example: allow more features and protocols to be used.Gustavo Sverzut Barbieri2016-12-081-39/+190
| | | | | | | | Instead of a single SSL connection, allow for local, tcp and udp, optional flush and delete-after-write (--single-message) and echo mode. Very similar to ecore_ipc_server_example.c
* ecore_con_client_example: allow more features and protocols to be used.Gustavo Sverzut Barbieri2016-12-081-36/+190
| | | | | | | Instead of a single SSL connection, allow for local, tcp and udp, optional flush and delete-after-write (--single-message). Very similar to ecore_ipc_client_example.c
* efl_io_buffered_stream: better detection of 'finished' state.Gustavo Sverzut Barbieri2016-12-081-4/+25
| | | | | | | When used with sockets, if it's EOS (ie: remote peer terminated the connection), but not closed, then it would not emit 'finished' event. Now it does.
* efl_io_copier: expose pending_size and add debug to done_get.Gustavo Sverzut Barbieri2016-12-082-2/+36
| | | | | | | In some cases the copier isn't done but you know there is not more data to arrive at it, then you want to know if all pending data was flushed from the copier's intermediate buffer to the destination, if so you can call it closed yourself.
* efl_io_buffered_stream: property and event 'progress'Gustavo Sverzut Barbieri2016-12-082-0/+37
| | | | | useful to get feedback on when data was actually sent/received, and how much.