Commit Graph

306 Commits

Author SHA1 Message Date
Vincent Torri 3499767ddb First steps towards the Windows port of ecore_con.
ecore_con_dns will be hard to port (fork+exec).

SVN revision: 46337
2010-02-20 18:01:50 +00:00
Boris Faure fc415b4776 fix ecore_con on posix systems
SVN revision: 45866
2010-02-04 10:34:08 +00:00
Cedric BAIL b7c8d2848a * ecore_con: Fix ecore_con_client_ip_get with TCP and IPv6.
SVN revision: 45752
2010-01-31 11:58:37 +00:00
Lars Munch 611d75895d Small typo and whitespace fix
SVN revision: 45666
2010-01-28 16:07:33 +00:00
Lars Munch 41a0d4dbff Fix client limit when reject excess clients is enabled
SVN revision: 45665
2010-01-28 16:05:34 +00:00
Cedric BAIL 534777a65a * ecore_con: Fix UDP server when receiving both IPv4 and IPV6 packet.
SVN revision: 45663
2010-01-28 15:35:29 +00:00
Vincent Torri 000b539623 do not do arithmetic pointer on void
SVN revision: 45220
2010-01-16 13:50:57 +00:00
Vincent Torri d1bdb785b1 fix warnings on opensolaris
SVN revision: 45219
2010-01-16 13:44:25 +00:00
Sebastian Dransfeld c25a56fac7 Ecore_Data gone
SVN revision: 45203
2010-01-15 21:47:27 +00:00
Vincent Torri 7d6a8417e9 bzero is deprecated, use memset instead.
SVN revision: 45173
2010-01-15 07:44:27 +00:00
Sebastian Dransfeld e7acf50935 make clang happy
SVN revision: 45146
2010-01-14 23:47:26 +00:00
Vincent Torri 313deaed8e sys/stat.h needed for permissions
Thanks to Laurent Ghigonis


SVN revision: 45079
2010-01-13 06:51:16 +00:00
Sebastian Dransfeld 8007e73077 Patch from Mathieu Taillefumier
I modified some hearder file in ecore to ease the cleanup of the private
header files in ecore. Each module has now a private header with its own
log color (eina_log related). I also created two private header files
for ecore_sdl and ecore_input for this purpose and corrected some typos
in the xlib_xcb private header file.

SVN revision: 44933
2010-01-07 00:30:05 +00:00
Vincent Torri 35af372ca7 fix some warnings
SVN revision: 44901
2010-01-04 23:43:16 +00:00
Vincent Torri a2506a70f6 * put local code in its own file. It will be better
when i'll add the Windows XP code, rather than
   plenty #ifdef in te code
 * remove some extra EAPI in code and useless Ecore_Data.h

I've tested and it seems to work. If you see problems with
local connections, please report in that thread


SVN revision: 44888
2010-01-04 19:35:21 +00:00
Vincent Torri a4b0afb1e4 * move structures from ecore_private.h to the corresponding source files
* add 2 internal ecore_exe functions as ecore_signak.c uses Ecore_Exe members
   no test is done in those 2 functions
 * remove standard headers from ecore_private.h



SVN revision: 44862
2010-01-03 21:55:50 +00:00
Sebastian Dransfeld 0a9456ccf7 Remove duplication from ecore headers
Clean up Ecore.h and ecore_private.h

SVN revision: 44664
2009-12-22 21:15:12 +00:00
Cedric BAIL d8e1895350 * ecore: Use eina_log.
Patch from Mathieu Taillefumier.


SVN revision: 44637
2009-12-21 17:32:19 +00:00
Vincent Torri 76983ea8f4 declare alloca
SVN revision: 44181
2009-12-04 08:55:46 +00:00
Cedric BAIL 7de1f120c2 * ecore_con: Add an alternative to getaddrinfo/fork by using c-ares.
For more information http://c-ares.haxx.se/


SVN revision: 44170
2009-12-03 10:26:40 +00:00
Cedric BAIL 7ff9045aba * ecore_con_dns: Mark it deprecated as it should be gone since months now.
SVN revision: 44096
2009-12-01 14:31:16 +00:00
Cedric BAIL 2a3171f914 * ecore_con_info: Reduce malloc and memset.
SVN revision: 44050
2009-11-30 12:25:02 +00:00
Cedric BAIL a8efb6d90d * ecore_con: Fix use of ecore_con_client_data_{get/set} with UDP and
MCAST connexion.

	Note: Please report any problem with Ecore_Con regarding UDP and
	MCAST after this patch.


SVN revision: 44014
2009-11-27 14:36:43 +00:00
Cedric BAIL 1d16f186fb * ecore_con: Add support for TCP_NODELAY.
SVN revision: 43818
2009-11-20 10:58:19 +00:00
Cedric BAIL d78f1d48cf * ecore_con_url: When download was broken in the middle, you could
have a status of 200 without all data being downloaded. This should
	fix this case.


SVN revision: 43805
2009-11-19 18:45:51 +00:00
Jonathan Atton 43115643e8 Ecore : cleanup
SVN revision: 43691
2009-11-14 14:06:58 +00:00
Jonathan Atton 3f3f79cd88 Ecore : Fix ecore con destroy
SVN revision: 43689
2009-11-14 13:43:38 +00:00
Cedric BAIL bd1bef6e2f * ecore_con_url: The fd could change for a same url. So destroy it and recreat.
SVN revision: 43670
2009-11-13 18:12:09 +00:00
Vincent Torri ae64144bc5 use static buffer
SVN revision: 43510
2009-11-07 07:09:06 +00:00
Vincent Torri 9db696ae0d strdupa does not exist on BSD. Use simply strdup
SVN revision: 43509
2009-11-07 05:58:01 +00:00
Cedric BAIL eb9bb2f832 * ecore_con_url: Fix bug using curl multi and basename.
SVN revision: 43357
2009-10-30 21:36:31 +00:00
Cedric BAIL 2829dfc366 * ecore_con_url: Workaround progress callback called by curl after
destruction of the Ecore_Con_Url object.


SVN revision: 43228
2009-10-23 13:33:40 +00:00
Vincent Torri 4072d0b23d * check the returned value of the _init() functions
* simplify a bit the init/shutdown functions


SVN revision: 42995
2009-10-10 05:28:43 +00:00
Cedric BAIL 380cc70ccc * ecore_con: Reduce risk of segv.
SVN revision: 42934
2009-10-07 11:59:26 +00:00
dieb e6b9bea5d8 Add missing prototype for ecore_con_url_response_headers_get().
SVN revision: 42048
2009-08-27 21:21:43 +00:00
Vincent Torri e005dd2479 * fix compilation when curl is not available
* small formatting


SVN revision: 41968
2009-08-25 06:45:35 +00:00
Cedric BAIL 05549684f7 * ecore_con_url: Remove debug.
SVN revision: 41954
2009-08-24 13:25:51 +00:00
Cedric BAIL 8d908436c6 * ecore_con_url: Add a way to retrieve request response headers.
Patch from Andre Dieb <andre.martins@ee.ufcg.edu.br>.


SVN revision: 41951
2009-08-24 09:41:07 +00:00
Christopher Michael 581556e6d2 Patch from Andre Dieb to remove a debug statement.
Fix formatting also.


SVN revision: 41919
2009-08-21 19:47:04 +00:00
Cedric BAIL 09012c96bb * ecore_con_url: Fix mem leak.
SVN revision: 41758
2009-08-14 11:33:33 +00:00
Cedric BAIL b559c260fa * Ecore_Con: Revert r41742.
Note: It's not a good idea to initialize curl, if you just
	want to do some ecore_con network or ipc. Better let them
	initialize separatly.


SVN revision: 41743
2009-08-13 15:42:30 +00:00
Gustavo Sverzut Barbieri 33b9d1b2ed init ecore_con_url.
By: Andre Dieb <andre.martins@ee.ufcg.edu.br>


SVN revision: 41742
2009-08-13 15:26:29 +00:00
Cedric BAIL caf64d8849 * ecore_con: Add broadcast support from Atton Jonathan.
SVN revision: 41701
2009-08-12 11:24:33 +00:00
Cedric BAIL c7f13ac781 * ecore_con_url: Patch from Andre Dieb with a few modification.
SVN revision: 41699
2009-08-12 09:47:04 +00:00
Cedric BAIL 429fc4b4f8 * ecore: Remove Ecore_List2 from ecore_con.
SVN revision: 41071
2009-06-17 11:40:30 +00:00
Gustavo Sverzut Barbieri 96511aeea4 proper cleanup of ecoren_con_server after ecore_events.
ecore_events are asynchronous and can be dispatched after the server
is deleted (ecore_con_server_del()). In this case, server will flag
"delete_me" and avoid doing double-free. When the event is dispatched
and the server is deleted, we still need to free resources and so we
need to call _ecore_con_server_free(). But we cannot do that by means
of ecore_con_server_del() since it will check "delete_me" flag and
will return.

This patch calls _ecore_con_server_free() directly when events are
dispatched and server is deleted. It fixes problems with
forecasts/weather modules exhausting file descriptors, a long standing
issue that bring problems with pam/desklock authentication.

Thanks to manio to point out #305 and testing.


SVN revision: 40490
2009-05-02 20:12:41 +00:00
Gustavo Sverzut Barbieri 4fd5d0c794 free getaddrinfo() results and avoid leaks in ecore_con.
This was affecting ecore_con users, specially modules that keep
polling the network, like forecasts or weather.

patch by manio, see bug #305.


SVN revision: 40488
2009-05-02 19:02:09 +00:00
Mike Frysinger 5016400f63 fix printf format warnings (int vs size_t) and curl usage warning (curl_easy_getinfo tromps on a pointer to a long, not an int)
SVN revision: 40430
2009-04-28 05:26:22 +00:00
Vincent Torri d24bc9ea4b better fix for -no-undefined
SVN revision: 40316
2009-04-23 03:56:31 +00:00
booleanlabel 3068e9bd4f From: booleanlabel@gmail.com
cygwin fixes.



SVN revision: 40302
2009-04-23 01:09:26 +00:00
Carsten Haitzler ce5a59b7e5 lutin... release soname patch. verbose svn soname used right now
SVN revision: 40131
2009-04-17 10:01:45 +00:00
Vincent Torri 36bbb31389 Fix compilation on OpenBSD (ticket #252). Patch by eumel
SVN revision: 39625
2009-03-22 13:30:52 +00:00
Vincent Torri 98fb9f9826 remove trailing spaces
SVN revision: 39624
2009-03-22 13:27:24 +00:00
Sebastian Dransfeld 2849d938ff include Ecore.h for ecore_main_fd_handler_active_set
SVN revision: 39544
2009-03-18 08:38:43 +00:00
Cedric BAIL f05eb71b29 * ecore_con_url: Add some constness.
SVN revision: 39504
2009-03-16 13:46:16 +00:00
Cedric BAIL 35ca381d4a * ecore_con_url: Fix little typo and unbreak Ecore_Con_Url.
SVN revision: 39359
2009-03-04 10:49:23 +00:00
Cedric BAIL 488d1beafd * ecore_con_info: Fix typo preventing dns resolution,
fix error handling and use eina in one more place.


SVN revision: 39265
2009-02-27 14:53:57 +00:00
Cedric BAIL f527e4ddee * ecore/src/lib/ecore_con/ecore_con.c: Fix some typo and include.
SVN revision: 39206
2009-02-25 15:03:59 +00:00
Cedric BAIL 6978e98dc6 * estickies,
* etk,
	* PROTO/exalt,
	* E-MODULES-EXTRA/diskio,
	* E-MODULES-EXTRA/drawer,
	* E-MODULES-EXTRA/penguins,
	* E-MODULES-EXTRA/slideshow,
	* E-MODULES-EXTRA/mail,
	* E-MODULES-EXTRA/forecasts,
	* E-MODULES-EXTRA/iiirk,
	* E-MODULES-EXTRA/places,
	* e,
	* ewl,
	* ecore,
	* elitaire,
	* entrance,
	* e_dbus,
	* efreet: Here we go, move from Ecore_List to Eina_List.

	NOTE: This patch is huge, I did test it a lot, and I hope nothing is
	broken. But if you think something change after this commit, please
	contact me ASAP.


SVN revision: 39200
2009-02-25 11:03:47 +00:00
Vincent Torri e18508b701 remove a bit the mess n ecore. It's just the first patch...
* add vim header
 * include config.h when necessary
 * fix the order of some include
 * move the standard header in ecore_private.h to the source files

I have recompiled all the efl and e17, and e17 seems to work fine with these changes.
If you encounter problems with that commit, let me know.


SVN revision: 38864
2009-01-31 18:33:39 +00:00
Gustavo Sverzut Barbieri 38240fb825 fix errors reported by gcc.
we must always use the return of eina_list_{append,prepend...}



SVN revision: 38481
2009-01-06 16:30:33 +00:00
Sebastian Dransfeld 48202c24bc Misc cleanup.
- Don't use EAPI for internal functions.
- Add prototypes to header.
- Some compiler warnings.

SVN revision: 38150
2008-12-15 17:59:19 +00:00
Cedric BAIL 642d8686de Remove ecore_hash and eina_hash use from ecore.
SVN revision: 38105
2008-12-11 13:55:47 +00:00
Nicholas Hughart 0b63514546 Some tweaks/fixups for abstract sockets.
SVN revision: 37931
2008-12-05 04:48:12 +00:00
Carsten Haitzler 9cf7c7c3a3 hmm revert this for now - i think it broke efm... i think...
SVN revision: 37879
2008-12-01 11:41:32 +00:00
Carsten Haitzler b8b89cb17e flush should use select with a timeout and try write every 10th of a sec
SVN revision: 37877
2008-12-01 10:13:16 +00:00
Carsten Haitzler 3de2227ec4 stderr-- (just noisy!)
SVN revision: 37426
2008-11-03 00:04:43 +00:00
Vincent Torri 9b19b7dec4 autotools fixes
* remove useless _DEPENDENCIES variables
 * remove useless files in EXTRA_DIST
 * use -no-undefied directly
 * add some flags when the host is windows ce

make distcheck succeeds on my computer

next step will be to fix the horrible mess in Ecore.h and ecore_private.h


SVN revision: 37406
2008-11-02 09:01:35 +00:00
Cedric BAIL 6d2ca9c036 Add support for GNU TLS in ecore_con.
SVN revision: 37329
2008-10-30 15:26:11 +00:00
Sebastian Dransfeld 97b46f898b Fix sign warning.
SVN revision: 37215
2008-10-27 09:49:25 +00:00
Sebastian Dransfeld f0783945d9 * Declare function ecore_con_info_udp_listen in private header
* Remove unused variables
* Add paranthesis to remove ambiguity

SVN revision: 37157
2008-10-26 16:32:45 +00:00
Cedric BAIL f3252b5b6e Fix a little typo.
SVN revision: 36989
2008-10-22 15:46:20 +00:00
Cedric BAIL 5015cf3a8d Patch from Shulga Nikita.
SVN revision: 36846
2008-10-20 11:18:58 +00:00
Cedric BAIL 3d49d88a32 Make ecore depend on eina. No change in the code yet, so just fix your build system and no bug must show up.
SVN revision: 36622
2008-10-13 15:59:19 +00:00
Cedric BAIL 9ff9555cc7 Make IPv6 work.
Patch from Arnaud de Turckheim.


SVN revision: 36612
2008-10-13 11:24:52 +00:00
Cedric BAIL 632615fd1f Fix entrance and perhaps exquisite too.
SVN revision: 36545
2008-10-09 12:30:19 +00:00
Carsten Haitzler cad561706f go back to svnrev 36473 for ecore_con - these ipv6 changes broke exquisite on boot - so unix sockets have been compromised somehow in the changes. cannot debug because system is stuck in boot and wont continue. narrowed down break to this change
SVN revision: 36540
2008-10-09 00:46:29 +00:00
Cedric BAIL 0ad506a441 Fix some warning.
SVN revision: 36532
2008-10-08 16:36:14 +00:00
Cedric BAIL 5f3c76b84a Correctly use addrinfo.
SVN revision: 36526
2008-10-08 13:31:09 +00:00
Cedric BAIL f3ace08723 More cleanup and export a replacement for ecore_con_dns_lookup.
SVN revision: 36497
2008-10-07 12:41:36 +00:00
Cedric BAIL 2455961732 Fix little macro error spotted by Peter Wehrfritz.
SVN revision: 36495
2008-10-07 12:36:06 +00:00
Cedric BAIL 922509b98d Another step toward IPv6 support with more cleanup.
Patch from Arnaud de Turckheim.


SVN revision: 36483
2008-10-06 16:40:01 +00:00
Cedric BAIL 554ad88eff Starting work for IPv6 support of ecore_con. Use getaddrinfo and getnameinfo instead of gethostbyname.
Patch from Arnaud de Turckheim.



SVN revision: 36475
2008-10-06 09:41:39 +00:00
Cedric BAIL 1cef991ffd Add full UDP client/server support.
Patch from Matt Barclay.



SVN revision: 36474
2008-10-06 09:28:15 +00:00
Vincent Torri 5fb70fd80d add 2 missing _CON_ ...
SVN revision: 36384
2008-10-01 19:51:29 +00:00
Cedric BAIL fb90b057e8 Patch from Quarium. Ecore_Con handle in progress connection with it.
SVN revision: 36380
2008-10-01 15:27:52 +00:00
Michael Jennings c36f11f8ea This should fix the DNS hangs.
SVN revision: 36372
2008-10-01 06:17:50 +00:00
Sebastian Dransfeld cdb45ce04a Rename REMOTE_SYSTEM to REMOTE_TCP, keep SYSTEM as #define (should be
removed in the future)


SVN revision: 36249
2008-09-25 11:37:01 +00:00
Cedric BAIL 6bbe0efc55 Patch from Matt Barclay that add UDP client support to ecore_con.
SVN revision: 36247
2008-09-25 10:14:31 +00:00
Carsten Haitzler 8c5d095827 from sacial - condition where pipe close doesnt happen.
SVN revision: 36117
2008-09-20 03:20:33 +00:00
Cedric BAIL 286a19f5e2 Add a test app and switch from SOL_IP to IPPROTO_IP for FreeBSD.
SVN revision: 36087
2008-09-18 15:18:59 +00:00
Cedric BAIL 36fdd93f13 Add multicast support thanks to Matt Barclay <mbarclay@gmail.com>.
SVN revision: 36046
2008-09-17 15:08:48 +00:00
Cedric BAIL 1fc6d866c2 Only set the struct one time (remove useless memset) and sync idler with animator.
SVN revision: 35966
2008-09-12 13:19:26 +00:00
Sebastian Dransfeld 361ddf6397 Seems that I forgot to upload the header changes when changing
ftp upload.


SVN revision: 35027
2008-07-08 04:08:52 +00:00
Eric Schuele d7a634d3da Fix the real warning this time. (undo my previous change as well)
SVN revision: 34929
2008-06-28 03:51:20 +00:00
Eric Schuele 387d29e262 - libgen.h is required on FreeBSD for basename(), and will provide
POSIX basename() for those of you using glibc.
 - Silence some compiler warnings.


SVN revision: 34926
2008-06-27 16:00:55 +00:00
Sebastian Dransfeld 3d551cfeb8 Add ftp upload function (from Massimiliano Calamelli).
SVN revision: 34878
2008-06-20 07:48:33 +00:00
Sebastian Dransfeld 9fa6620817 Don't complain when we don't include netdb.h
SVN revision: 34825
2008-06-14 10:18:00 +00:00
Cedric BAIL c56d5ba638 Add FTP upload support for Ecore_Con from Massimiliano Calamelli.
SVN revision: 34683
2008-05-28 09:02:39 +00:00
doursse cc0ca9325e integration of evil in ecore. It's compiling on windows and my ubuntu. The commit is big, please report any problem
SVN revision: 34671
2008-05-26 05:16:34 +00:00