Commit Graph

629 Commits

Author SHA1 Message Date
Mike Blumenkrantz 4239d5d67f giant cleanups/rewrites which are unnoticeable to users:
*client->server renamed client->host_server to clarify ambiguity
*ecore_con_ssl_client_prepare.* killed off because it was useless and wrong
*openssl generates only one SSL_CTX per server now instead of a new one for each client, which is broken/unnecessary/wasteful
**as a result, certificate loading is now only done once
**additionally this will save a very large amount of memory and avoid unnecessary/broken refcounting
*ecore_con_ssl_server_prepare.* rewritten to actually be useful instead of just a lazy way to null pointers
**all SSL_CTX code now goes here^
*some formatting fixes
*internal function renames


SVN revision: 52422
2010-09-18 19:26:05 +00:00
Carsten Haitzler fa5b80b879 dont use tls max if it doesnt exist eh?
SVN revision: 52413
2010-09-18 11:41:15 +00:00
Mike Blumenkrantz 36bd287841 add mixed protocol for gnutls as well
SVN revision: 52412
2010-09-18 08:46:17 +00:00
Mike Blumenkrantz a8ef623de7 allow mixing sslv3+tlsv1 in openssl, FINALLY FIX INITIAL BUG FOR OPENSSL SERVERS!
note that openssl servers still do not work because there is more than one bug :/


SVN revision: 52411
2010-09-18 08:36:13 +00:00
Mike Blumenkrantz f62bcf1ff1 switch private struct members from char bitfields to Eina_Bool bitfields
no noticeable difference


SVN revision: 52399
2010-09-18 06:30:13 +00:00
Mike Blumenkrantz f8d56a023f a loooooooot of outdents and reformatting
SVN revision: 52397
2010-09-18 06:06:05 +00:00
Mike Blumenkrantz e9361b4e1c whoops forgot an UNUSED for openssl
SVN revision: 52396
2010-09-18 05:32:27 +00:00
Mike Blumenkrantz ac86c1aaa4 more progress on fixing openssl servers, fix all warnings, add error checking for openssl code
SVN revision: 52395
2010-09-18 05:31:00 +00:00
Mike Blumenkrantz 3736856f82 stop the indenting and line wrapping madness!!!!!!!
SVN revision: 52394
2010-09-18 05:30:16 +00:00
Mike Blumenkrantz 8cd87afb04 outdent for readability
SVN revision: 52393
2010-09-18 04:59:11 +00:00
Mike Blumenkrantz d8afcde705 add rest of ssl algorithms and clean up
SVN revision: 52391
2010-09-18 01:27:38 +00:00
Mike Blumenkrantz 8db37b8518 formatting
SVN revision: 52390
2010-09-18 01:20:25 +00:00
Mike Blumenkrantz 5e499b0c0e fix gnutls ssl
SVN revision: 52385
2010-09-17 19:43:03 +00:00
Mike Blumenkrantz 6542578149 new ssl error output: now with detailed location info and 50% more fiber!
SVN revision: 52380
2010-09-17 17:39:32 +00:00
Mike Blumenkrantz d74f46d5a5 simplify error conditions and output errrors on failure
SVN revision: 52378
2010-09-17 17:22:59 +00:00
Mike Blumenkrantz c7608248dd enable compression for gnutls, add error checks to client functions
SVN revision: 52377
2010-09-17 17:18:41 +00:00
Mike Blumenkrantz cb0c97b6c3 add error checking for servers
SVN revision: 52376
2010-09-17 17:03:15 +00:00
Mike Blumenkrantz 3e98b064d3 use right pointer for ssl ctx to avoid segv
SVN revision: 52362
2010-09-17 08:58:23 +00:00
Mike Blumenkrantz f3a9a92d36 fix ssl to work with cert loading flag
SVN revision: 52361
2010-09-17 08:00:42 +00:00
Lucas De Marchi be1b6d32ef Fix common misspellings
Following misspellings were fixed:

alledgedly->allegedly
cant->can't
carefull->careful
consistant->consistent
currenly->currently
dependancy->dependency
descripters->descriptors
doesnt->doesn't
dosen't->doesn't
existant->existent
exmaple->example
inbetween->between
independant->independent
isnt->isn't
mroe->more
neccessary->necessary
occured->occurred
occurence->occurrence
parrallel->parallel
particualr->particular
preceeding->preceding
recieved->received
recieves->receives
seperate->separate
substraction->subtraction
succesfully->successfully
successfull->successful
sucess->success
supress->suppress
usefull->useful
witht->with



SVN revision: 51986
2010-09-08 11:23:42 +00:00
Mike Blumenkrantz 833c0d19a9 doxy clarification
SVN revision: 51694
2010-08-28 10:01:20 +00:00
Nicholas Hughart 7afd0b7173 Add the following functions to Ecore_Con API:
ecore_con_server_name_get
ecore_con_server_port_get



SVN revision: 51670
2010-08-27 05:16:00 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Mike Blumenkrantz 122ec75b01 return void* for data functions; depend on user not to be stupid (hahahahahah)
fix doxy to display correctly and be accurate once again
TODO: add functions to rwlock global data while threads are modifying it?


SVN revision: 50692
2010-07-30 20:33:32 +00:00
Mike Blumenkrantz 5d52fce3f6 rrrrrrrrrrrrrr stupid enum!
SVN revision: 50689
2010-07-30 17:03:34 +00:00
Mike Blumenkrantz 8c946dff90 grrrrr this enum is really starting to piss me off
SVN revision: 50688
2010-07-30 15:57:19 +00:00
Mike Blumenkrantz bc39497059 ssl cert cleanups: round 3
fix bitmask detection and refcount more correctly


SVN revision: 50679
2010-07-30 06:47:59 +00:00
Carsten Haitzler 0b3b437823 close after del fd handler
SVN revision: 50667
2010-07-30 02:42:17 +00:00
Carsten Haitzler e3d14a1032 formatting ewwww
SVN revision: 50665
2010-07-30 00:35:57 +00:00
Carsten Haitzler 9c3ea35501 fix valgrind unittied buffer bitches
SVN revision: 50664
2010-07-30 00:27:02 +00:00
Mike Blumenkrantz 21a7365572 dropping my life to fix previously broken mess so people will stop complaining
SVN revision: 50663
2010-07-29 23:42:32 +00:00
Cedric BAIL 8f423ef340 * ecore: fix comment.
SVN revision: 50642
2010-07-29 12:29:19 +00:00
Mike Blumenkrantz 3515de0a22 typos are frustratinnnnnnnnnnggggggggggggggggggggggggggggggggggggggg
SVN revision: 50637
2010-07-29 08:13:58 +00:00
Mike Blumenkrantz fae76ddd77 correctly use & to detect server type instead of ==
SVN revision: 50630
2010-07-29 01:42:43 +00:00
Mike Blumenkrantz 36601b4f78 more doxy than anyone will EVER need. EVER.
SVN revision: 50629
2010-07-29 01:28:18 +00:00
Mike Blumenkrantz eb9de4e5f0 redo some comments
SVN revision: 50628
2010-07-29 01:28:03 +00:00
Mike Blumenkrantz c39514b9be reorder functions, redo doxy, make a not so obvious null pointer more obvious for future readers
SVN revision: 50627
2010-07-29 00:27:15 +00:00
Mike Blumenkrantz 94baa35276 prevent crafty users from breaking build if they define USE_OPENSSL and USE_GNUTLS
SVN revision: 50626
2010-07-29 00:13:56 +00:00
Mike Blumenkrantz 920c508d86 these functions return a const char *, so they should actually return a const char *
SVN revision: 50622
2010-07-28 22:32:39 +00:00
Mike Blumenkrantz 1b41ba0fb1 forgot to put some doxy in groups
SVN revision: 50620
2010-07-28 22:23:14 +00:00
Mike Blumenkrantz 34bc016890 ssl uh-oh
SVN revision: 50612
2010-07-28 20:03:28 +00:00
Mike Blumenkrantz 76f9c81589 fix for people who compile without ssl/tls support
SVN revision: 50611
2010-07-28 19:58:57 +00:00
Mike Blumenkrantz 6a8c01999f remove unused and null init a pointer
SVN revision: 50604
2010-07-28 18:27:47 +00:00
Mike Blumenkrantz 0bbca7c75d fix cert support, split functions for client/server
note: crl checking and cert verification do not currently function


SVN revision: 50603
2010-07-28 18:25:46 +00:00
Naruto TAKAHASHI b7b6e3c585 From: Naruto TAKAHASHI <tnaruto@gmail.com>
Subject: [E-devel] [PATCH] ecore_con_url_httpauth_set()

Hi all,

I attach a tiny Patch for ecore_con_url_httpauth_set().

CURLOPT_USERNAME and CURLOPT_PASSWORD is declared in enum, so those
options isn't able to be used #ifdef macro's argument.

This patch checks that LIBCURLVERSION_NUM is 0x071301(v7.19.1) and
over.  Because CURLOPT_USERNAME and CURLOPT_PASSWORD was added at
7.19.1.

thanks to confirm this patch.



SVN revision: 50539
2010-07-27 10:29:58 +00:00
Christopher Michael 5f64c38549 Fix up a little formatting (wrt wrapping).
SVN revision: 50531
2010-07-27 06:33:47 +00:00
Mike Blumenkrantz f0053045e4 add full ssl certificate support to ecore_con: call ecore_con_ssl_cert_add("/path/to/cert.pem") and then create the server object with the ECORE_CON_LOAD_CERT flag
also may have accidentally ruined the formatting on a couple files and started an hour-long discussion over efl formatting scripts to conceal the fact that I used uncrustify to reformat everything


SVN revision: 50529
2010-07-27 06:30:27 +00:00
Mike Blumenkrantz 12c294af32 doxy
SVN revision: 50527
2010-07-27 01:05:13 +00:00
Mike Blumenkrantz 021fe34df8 big doxy update
SVN revision: 50526
2010-07-27 01:00:24 +00:00
Mike Blumenkrantz 3e3c256e0d doxy fixes grrrrrrrrrrrrrrrrrrrrrr
SVN revision: 50525
2010-07-27 00:10:40 +00:00
Mike Blumenkrantz 7f68aaa0c0 fix fixme: free error strings on ssl shutdown
SVN revision: 50516
2010-07-26 20:05:50 +00:00
Cedric BAIL 7726478790 * ecore: add ecore_con_lookup for dns request retrieval.
NOTE: ecore_con_info_get is now private has it can't be used outside of Ecore_Con.


SVN revision: 50425
2010-07-22 11:32:55 +00:00
Christopher Michael bb651d8eb8 Move Ecore.h (and associated headers) to own dir.
SVN revision: 50142
2010-07-09 06:23:19 +00:00
Cedric BAIL fbe9064310 * ecore: Ecore callback really should return Eina_Bool.
SVN revision: 49829
2010-06-24 16:15:56 +00:00
Carsten Haitzler 194fc4c4ac fix cedric b0rk
SVN revision: 49569
2010-06-08 11:31:15 +00:00
Cedric BAIL f3457b3bdf * ecore_con: close connection when other side end it.
SVN revision: 49567
2010-06-08 11:08:43 +00:00
Carsten Haitzler bba7aaba2a quick - limit # of tries for reading... this means 1000% cpu usage...
but at least things dont hang.



SVN revision: 49566
2010-06-08 11:02:57 +00:00
Cedric BAIL 6aac60a150 * ecore_con: with AF_UNSPEC, c-ares will prefer IPv4 address
when IPv4 and IPv6 exist, if you ask AF_INET6, it will first
	try IPv6 before falling back to IPv4 address.

	So now ecore_con_ares will prefer IPv6 if available.


SVN revision: 49552
2010-06-07 13:08:19 +00:00
Cedric BAIL d76f881898 * ecore_con: improve error detection.
SVN revision: 49551
2010-06-07 13:05:49 +00:00
Carsten Haitzler 17263ea263 add ecore versioning
SVN revision: 49271
2010-05-29 06:28:25 +00:00
Carsten Haitzler 79f1448682 CEEEEEEEEEEEEEEEEEEEEEEEEDRIC! *spank*
SVN revision: 48907
2010-05-16 03:04:18 +00:00
Sebastian Dransfeld 0f4eb30d82 ecore_con: remove unused variable
SVN revision: 48821
2010-05-13 20:24:16 +00:00
Carsten Haitzler 8abda5cb05 only do auth stuff if there in curl.
SVN revision: 48749
2010-05-11 12:10:29 +00:00
Rui Seabra b923e09da0 This commit implements http auth support; in order to avoid exposing too much of curl's internal workings, I opted to have a safety parameter in order to choose between CURLAUTH_ANY and CURLAUTH_ANYSAFE.
SVN revision: 48715
2010-05-09 15:06:06 +00:00
Hannes Janetzek 9dc6c78922 added fuction to send httposts created with curl formadd.
SVN revision: 48651
2010-05-06 20:18:39 +00:00
Carsten Haitzler ea3dace944 handle url set better
SVN revision: 48358
2010-04-27 10:53:25 +00:00
Vincent Torri f7b7217437 remove ecore_con_dns
SVN revision: 47077
2010-03-09 12:57:38 +00:00
Gustavo Sverzut Barbieri dba2a95572 warnings--
Ecore now goes clean on -Wall -Wextra :-)



SVN revision: 46672
2010-02-28 23:27:47 +00:00
Christopher Michael 300d53a4f4 Patch from Brian Wang to fix the TRUE/FALSE --> EINA_TRUE/EINA_FALSE mess.
(NB: Win32/CE people may need to fix some TRUE/FALSE parts...couldn't test
those).

Thanks Brian :)



SVN revision: 46503
2010-02-26 05:56:49 +00:00
Vincent Torri 89594ec456 fix declaration of struct addrinfo
SVN revision: 46434
2010-02-24 17:52:54 +00:00
Vincent Torri 366c893967 never use macro defined by configure in an exported header
SVN revision: 46387
2010-02-23 13:11:54 +00:00
Vincent Torri 4d11d31e3d * instead of including headers wrt to the OS, include them if
they are available
 * compilation on Windows XP minimum only

SVN revision: 46338
2010-02-20 19:12:52 +00:00
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
Peter Wehrfritz 1bb6fe82e7 compile again with curl
SVN revision: 34012
2008-03-13 09:26:24 +00:00
Sebastian Dransfeld a4ad7cb0eb Fix compiler warnings.
SVN revision: 34009
2008-03-13 06:35:57 +00:00
Peter Wehrfritz 164190d377 compile on FreeBSD again
SVN revision: 33984
2008-03-11 19:51:32 +00:00
Carsten Haitzler 2f4173e229 cedrics ecore_cn_url stuff for file downloads
SVN revision: 33970
2008-03-09 16:43:32 +00:00
Carsten Haitzler b9c073d25f allow programs using ecore_con_url to work and have symbols defined - even if
api doesnt do anything useful as curl is disabled.


SVN revision: 33929
2008-03-05 05:15:37 +00:00
Carsten Haitzler e89ea49c8b if port < 0 then drop port number
SVN revision: 33898
2008-03-02 08:39:21 +00:00
Sebastian Dransfeld 0354cd15e9 And remove debugging.
SVN revision: 33771
2008-02-18 06:41:52 +00:00
Sebastian Dransfeld 4ec81c3451 List data should not be in the nodes when using ecore_list
SVN revision: 33770
2008-02-18 06:27:26 +00:00
Sebastian Dransfeld d6b1e0b5a6 formatting
SVN revision: 33769
2008-02-18 06:26:20 +00:00
Peter Wehrfritz 69c774cbe6 add doxy stubs, so that the function names at least appear in the api references
Thanks to mcalamelli


SVN revision: 33731
2008-02-11 23:24:11 +00:00
Mike Frysinger 184812f289 replace a lot of win32 ifdef hacks with autoconf checks
SVN revision: 33616
2008-01-26 05:40:53 +00:00
Carsten Haitzler c1441e1c3a e:
1. configure/build changes to allow cross-compiling painlessly
2. pager module namespace changes - this was still dirty afdter the namespace
cleanup, so clean it up
3. add a powersave subsystem - doesnt have an "automatic" way to turn on and
off right now, this i think is best provided by modules (that do things like
monitor acpi status's (eg close lid of laptop), AC power status etc. etc.
this allows e to nicely defer "power" expensive actions to avoid disk
spinups etc.
4. move to use the new ecore poller system  - discussed long ago as part of
power management/saving issues. now it exists
5. add a canvas idle flush call that helsp cope with the new shm greedy
software x11 engine stuff
6. use the new powersave subsystem where appropriate
7. fix non-zeroed/initted memory access in e_fm_main
8. fix mem leak for e menus
9. remove ipc handlers for changed/removed config values
10. use animaotr not timer for menu scrolls - then menu scrolls obey the fps
config
11. fix up timer/poll happienss of cursor idle stuff
12. remove avoid damage from popups for now - causing problems
13. change battery and temp readouts to b e shorter so they fit
14. pager can emit signals on focus change for mini-windows now
15. temperature module now uses a slave process and uses stdin/out to talk to
it and get output - this makes e smoother as in my expereicne i found getting
the temp on my laptop actually took like 200ms so e "hang" for 200ms while
reading the acpi files - so now the subprocess does it and just writesa back
to e when it gets it.

ecore:
1. add ecore_pollers. see the documentation on them in doxygen comments :)
2. fix timers to only go off when they have to - bug there that made e's
select time out a LOT more than it needed to. defensive coding hid the
problem. now fixed. e should be much more power friendly now.
3. formatting/niceness in ecore_exe stuff
4. some comments on comments with SIGIO ideas vs. select
5. add call to be able to add an idle enterer at the start of the list of
them, not just the end (as has been the default)
6. fix ecore_evas to support auto evas idler calls after 0.5 secs of idle in
all canvases - and to do it right
7. if argb destination - set the shape EVENT shape (to mask out events in
transparent regions much like shape does withotu translucency)
8. in ecore_x add support for the event shape

evas:
1. fix cache to work properly and not just always fill up (as it seemed to
like to think cahce useage dropped below 0 when it didnt and thus just
over-fill)
2. software x11 engine now ONLY uses shm segments - no ximages over the
socket. this ximage hack was there to avoid the 2 round trips involved in
setting up an shm image - now i mitigated that wih an shm image cache pool.
it keeps shm images around and repurposes them for new update regions if
appropriate. this means many fewer shm creates (about 1/100th the number) and
since we recycle the memory less 0 memory page filling by the kernel - in the
end, i recorded about a 10-20% speedup over the old software x11 engine.
simple tests i have seen up to 120% speedups. idle flush now does something -
it frees all the cached shm segments. it has a hard-coded limit of 4mb worth
of shm segments (or 32 segments - whichever comes first) to keep around. once
can never complain much about speedups methinks :). also evas will defer sync
until the NEXT frame is written - this means evas can calculate the next
frame of data while x dma's/copies the images to the screen at the same time
(if you hve a dual core or multi-cpu machnike or your xserver is able to use
DMA to copy image data to the screen/video ram then this should see a decent
speedup).


SVN revision: 33448
2008-01-11 07:33:57 +00:00
Sebastian Dransfeld 8cb8f0e249 Add support for TLS
SVN revision: 33400
2008-01-08 21:28:51 +00:00
Sebastian Dransfeld d67f5ab32f Support SSLv3
SVN revision: 33398
2008-01-08 21:06:43 +00:00
Christopher Michael 7f91eb8ad2 Some formatting fixes while I'm in here reading :)
SVN revision: 32917
2007-11-30 08:21:37 +00:00
Christopher Michael ac03429c22 Reword Ecore_Con doxy a little to be a bit nicer.
SVN revision: 32916
2007-11-30 08:10:37 +00:00
doursse be1229247a autostuff improvements:
* use non deprecated version of AC_INIT and AM_INIT_AUTOMAKE
   and check the required minimal versions.
 * add bzipped distribution archive
 * add AC_LIBTOOL_WIN32_DLL
 * forbid libtool to check fortran
 * compute libtool versioning from the version of the package
 * pass the directories based on ${prefix} to the preoprocessor
   with the -D option
 * replace INCLUDES, wich is deprecated since 2001 by AM_CPPFLAGS
 * remove useless -L flags in *_la_LDFLAGS


SVN revision: 32338
2007-11-04 09:29:20 +00:00
Kim Woelders eb2aa4a3d0 Add some const's.
SVN revision: 32132
2007-10-21 15:16:14 +00:00
Sebastian Dransfeld 3a84f04c4f formatting.
SVN revision: 31825
2007-09-26 17:18:52 +00:00
Sebastian Dransfeld fcad0da826 formatting
SVN revision: 31823
2007-09-26 16:34:14 +00:00
Gustavo Sverzut Barbieri 9acabdd1c5 Ecore_Con fixes and improvements.
Bugs:
 - data buffer we are receiving must be copied, or we could receive
   garbage in the event handler.
 - complete event show up before we receive the last data event.

Improvements:
 - Use ECORE_MAGIC.
 - Status code is no longer curl internal status, but ftp or http return
   code (More usefull than CURLE_OK).
 - Add a time condition on requested url (see HTTP code 304).
 - Add progress events also (should work but not really tested).
 - Add data_set/data_get.

Closes bug #217.

Patch by Cedric BAIL.


SVN revision: 31822
2007-09-26 16:01:04 +00:00
doursse 50432552c8 add windows support to ecore. ecore_evas is ported too (directdraw and direct3d. No opengl yet). It needs to be tested a lot, though. Remove some trailing spaces here and there. Replace WIN32 with _WIN32
SVN revision: 31513
2007-08-26 11:17:21 +00:00
Peter Wehrfritz cd20fbc9d9 *API BREAK* see the discussion in the mailing list. misc and e_modules will follow
SVN revision: 30970
2007-07-25 17:01:04 +00:00
Carsten Haitzler 2a5d49866c clean up ecore_con dns query- on shut down nuke all pending queries
SVN revision: 30292
2007-06-10 03:41:05 +00:00
Michael Jennings feabcdfe64 Thu Mar 15 12:20:27 2007 Michael Jennings (mej)
Re-apply the previously reverted patch and add (I think) the correct
fix for ecore-config.  I haven't tested this extensively, but edje
builds okay with it, so hopefully it's right.
----------------------------------------------------------------------


SVN revision: 28755
2007-03-15 22:21:28 +00:00
Michael Jennings 3edb26cf60 Wed Mar 14 21:57:38 2007 Michael Jennings (mej)
Reverting changes; kindly test patches BEFORE applying them.
----------------------------------------------------------------------


SVN revision: 28732
2007-03-15 07:57:43 +00:00
doursse d9fa45fe5f use the correct Windows macro when compiling with microsoft compiler, and not mingw/cygwin
SVN revision: 28727
2007-03-15 01:01:10 +00:00
Carsten Haitzler d6dff9cb77 add flush calls.
SVN revision: 28376
2007-02-16 18:12:38 +00:00
Carsten Haitzler 6e452edfd4 patches applied as per emails :)
SVN revision: 28302
2007-02-10 17:23:09 +00:00
Kim Woelders 82a7290a4a Fix warnings.
SVN revision: 27036
2006-11-10 19:11:12 +00:00
Kim Woelders 7c4d58dbdf Add const, fix warnings.
SVN revision: 26976
2006-11-05 16:49:55 +00:00
rephorm 5ad73d3440 copy the name into the buffer so that svr->path gets set correctly later
SVN revision: 26132
2006-09-25 05:21:14 +00:00
sebastid 5608f9adcf Remove double declarations.
No need to typedef to void.


SVN revision: 26086
2006-09-24 08:16:02 +00:00
rephorm feeca8301b cleaner handling of optional features
SVN revision: 26084
2006-09-24 07:53:47 +00:00
rephorm 64386aa44c don't include ifdefs in the main header
SVN revision: 26083
2006-09-24 07:35:50 +00:00
rephorm 16f3aae0c9 Add abstract socket namespace support to ecore_con.
Lots of work on ecore_dbus
Hilights:
  - get the socket address for system/session/startup busses from the environment
  - can request/release a bus name
  - receive method calls (we need to add a way to register callbacks for specific methods)
  - send signals and method replies (untested)

*** API BREAKAGE ***
ecore_dbus_message_new_method_call() - the 'destination' param has moved to after the 'method' param to keep things consistent with newly supported message types and the param ordering in the spec.


SVN revision: 26081
2006-09-24 07:24:52 +00:00
sebastid f07a4a166d Add missing '_'.
SVN revision: 24597
2006-08-12 14:38:03 +00:00
sebastid 942012e29d Make it possible to connect to systems which do not use ports for local
sockets.


SVN revision: 24076
2006-07-20 16:47:02 +00:00
Carsten Haitzler 9b885559b6 no ip for local conns
SVN revision: 23822
2006-07-10 19:11:55 +00:00
Carsten Haitzler 70c0609d51 asparagus time!
SVN revision: 23778
2006-07-09 18:35:57 +00:00
Carsten Haitzler 28dff2e36e fd leak in dns lookups! fixed! :)
SVN revision: 23411
2006-06-13 08:59:12 +00:00
Carsten Haitzler d796633973 header not needed
SVN revision: 23410
2006-06-13 08:54:58 +00:00
Carsten Haitzler ff014de721 remove printf debuggin
SVN revision: 23087
2006-06-02 08:11:54 +00:00
Carsten Haitzler fb55d1856b more debugging fixing...
SVN revision: 23086
2006-06-02 08:06:46 +00:00
Carsten Haitzler fc6b50098a deboog more
SVN revision: 23085
2006-06-02 08:02:57 +00:00
Carsten Haitzler 0ea8efe622 still debugging
SVN revision: 23084
2006-06-02 07:56:42 +00:00
Carsten Haitzler 393f3c7708 chasing bugs still
SVN revision: 23082
2006-06-02 07:29:53 +00:00
Carsten Haitzler ff5f8cc24f more safety measures
SVN revision: 23081
2006-06-02 07:24:04 +00:00
Carsten Haitzler 7ee02394bc more fix work
SVN revision: 23080
2006-06-02 07:08:16 +00:00
Carsten Haitzler e7b6d886fd 1. much smaller flush timeouts (0.5 secs)
2. i think i fixed a "events being generated for ecore_con's that were
deleted already" problem :)


SVN revision: 23079
2006-06-02 07:01:49 +00:00
Carsten Haitzler 64e85b9d48 linger -> 0
SVN revision: 22856
2006-05-24 00:45:27 +00:00
Carsten Haitzler 83907c5643 enable linger... set it to 0
SVN revision: 22855
2006-05-24 00:33:20 +00:00
Carsten Haitzler 3a63c7eab6 limit flushiness.
SVN revision: 22726
2006-05-19 03:52:24 +00:00
Carsten Haitzler 99f3565777 reduce linger to... 0 for server
SVN revision: 22221
2006-04-19 07:27:52 +00:00
codewarrior ae3015fef8 ecore_con_server_clients_get
SVN revision: 21597
2006-03-30 06:48:45 +00:00
Carsten Haitzler e8929d7043 add calls to get ip addr of client or server (NULL for created servers of
course) and comments/docs


SVN revision: 21437
2006-03-20 07:45:58 +00:00
Carsten Haitzler 4924cf8ba2 set server/client data to NULL on a delete - as it's already returned it it
should now be NULL and not used.


SVN revision: 21435
2006-03-20 05:59:21 +00:00
Carsten Haitzler b2ecc06e68 defer server and client deletion for con and ipc until all pending events
have been processed.


SVN revision: 21434
2006-03-20 05:53:12 +00:00
Carsten Haitzler 6094eecb72 add max data payload settings to ipc
SVN revision: 21250
2006-03-13 08:50:27 +00:00
Carsten Haitzler 6e54d73898 add max data payload settings to ipc
SVN revision: 21249
2006-03-13 08:50:26 +00:00
Carsten Haitzler 1ce159175b exit - without atexit calls
SVN revision: 20392
2006-02-11 07:42:33 +00:00
Carsten Haitzler 370108d580 a bit of work to make dns lookups happen in a forked child - the dns protocol
stuff, though nice and cool, is having problems with multiple listing returns
and more with segv's, so this is the fastest/easiest fix right now - all the
old code is still there.


SVN revision: 19899
2006-01-19 09:11:30 +00:00
rbdpngn f1bc839522 Revert disown call and force the parent to check if it created the socket
before unlinking it.


SVN revision: 19714
2006-01-11 05:13:23 +00:00
rbdpngn ea0749e88a Allow servers to disown their sockets. Allows for closing after a fork()
without unlinking the socket in the filesystem.


SVN revision: 19636
2006-01-08 07:42:56 +00:00
Mike Frysinger f91bf649a7 make sure _ecore_con_url_data_cb is declared static in both places (prototype and definition) as reported by Vladimir Lushnikov via e-mail
SVN revision: 19632
2006-01-08 02:37:50 +00:00
Carsten Haitzler 12aa35dd99 fix up some warnings
SVN revision: 19563
2006-01-06 17:58:12 +00:00
Carsten Haitzler 7554f8ee36 actually make symbol hiding work!
SVN revision: 19314
2005-12-27 17:17:31 +00:00
rbdpngn ec44ab043d Delay allocation of SSL library memory until necessary.
SVN revision: 18657
2005-11-27 07:18:36 +00:00
Carsten Haitzler f3e18a0745 fix exmaple and spanky
SVN revision: 16861
2005-09-23 05:46:56 +00:00
sebastid 858d9fecdf Fix init and shutdown.
SVN revision: 16652
2005-09-07 09:06:06 +00:00
sebastid 0613b8d816 Included in ecore_private.h
SVN revision: 16651
2005-09-07 08:59:45 +00:00
sebastid b5d81b7a72 Only run init when count is 1 and shutdown when count is Only run init when count is 1 and shutdown when count is 00
SVN revision: 16650
2005-09-07 08:58:07 +00:00
sebastid ebaf552ccd return initcount on init and shutdown
SVN revision: 16647
2005-09-07 08:30:51 +00:00
sebastid 49fd515a14 Included in ecore_private.h
SVN revision: 16646
2005-09-07 08:24:12 +00:00
sebastid 9bc6eb91e4 config.h is included in ecore_private.h
SVN revision: 16626
2005-09-06 23:15:49 +00:00
sebastid d758ca86bb Header cleanup. Don't include unneeded headers in system lib header.
SVN revision: 16550
2005-09-05 10:17:08 +00:00
sebastid 5250fbc7c8 * Difference between user wanting a module, and the possibility of building
a module.
* Only do tests related to a module, if the module is to be built
* use AC_PATH_GENERIC
* Formatting
* Remove som weird AC_SUBST, why were they there?


SVN revision: 16543
2005-09-05 08:40:50 +00:00
sebastid ceb143f80c Delay dns lookup until after initializing the server. If the hostname
is in cache, it will execute the callback without delay.


SVN revision: 16476
2005-09-03 03:07:29 +00:00
sebastid b72979a68e Remove _ from global variables.
SVN revision: 16426
2005-08-30 10:17:10 +00:00
sebastid 19d9aa1452 Move Ecore_Oldlist to Ecore_List2 and rename the funcs from _list_
to _list2_


SVN revision: 16425
2005-08-30 10:05:27 +00:00
sebastid d2d9f29e1a Move data to the first element in the callback. Ecore style.
SVN revision: 16424
2005-08-30 09:32:09 +00:00
sebastid 2f17af26aa Fix cache free.
SVN revision: 16422
2005-08-30 04:50:55 +00:00
sebastid 24d6118b32 Add a small cache.
SVN revision: 16421
2005-08-30 04:35:24 +00:00
sebastid c05660f264 Don't need searchname and hostname stored.
SVN revision: 16344
2005-08-25 15:12:57 +00:00
sebastid 8c3e630528 Don't segv on early error (before malloc).
SVN revision: 16330
2005-08-25 08:16:01 +00:00
sebastid c2074ba87d Delay initialization of SSL.
SVN revision: 16315
2005-08-24 16:29:06 +00:00
tsauerbeck 3cc8008f84 fixed a memleak
SVN revision: 16314
2005-08-24 16:20:12 +00:00
sebastid e9dfdea2e9 Change ecore_con_dns_gethostbyname() to ecore_con_dns_lookup()
SVN revision: 16307
2005-08-24 09:11:30 +00:00
sebastid e90fd32b80 Big update.
Understand CNAME, get the right hostname and aliases and get all IP's.


SVN revision: 16303
2005-08-24 02:24:25 +00:00
sebastid 509d18c822 TODO++
SVN revision: 16281
2005-08-22 14:03:16 +00:00
stffrdhrn ad9a2cdc13 A wise man once said 'There is no need to display warnings about syntax one didn't create and may not fully support'. I otherword, don't complain about anything we don't recongnise.
SVN revision: 16278
2005-08-22 13:33:41 +00:00
stffrdhrn 6a13fae932 skip # as well
SVN revision: 16277
2005-08-22 13:08:20 +00:00
stffrdhrn 6b56f53ea9 dont complain about comments in resolv.conf
SVN revision: 16257
2005-08-21 15:46:57 +00:00
rbdpngn 1cceb03000 Fix build on OS X, holler if this causes Linux issues.
SVN revision: 16222
2005-08-17 06:23:58 +00:00
sebastid 3682e40ecc search domain and search
remove problem in kill_server, didn't check if the fd_handler was NULL
Don't recreate the message for each server.


SVN revision: 16210
2005-08-16 13:15:24 +00:00
sebastid 26e35fe2c5 Check if the server was found.
Formatting.


SVN revision: 16209
2005-08-16 11:26:05 +00:00
sebastid 4a68032422 More checking.
SVN revision: 16208
2005-08-16 10:48:46 +00:00
sebastid 8db857be0d non-blocking gethostbyname
SVN revision: 16203
2005-08-16 09:25:02 +00:00
sebastid 2f244acc2e Formatting.
SVN revision: 16192
2005-08-15 23:36:22 +00:00
Kim Woelders b25f5c9e75 Quiet.
SVN revision: 15939
2005-07-29 16:41:05 +00:00
Carsten Haitzler 7c1ced7036 when this moved to ecore_lists... someone forgot that accessing a struct
after u free is is BAD... :)


SVN revision: 15931
2005-07-28 12:44:28 +00:00
sebastid ee61e32cbd curlm must exist for this function to work, so remove the test.
Only and active Ecore_Con_Url is registered with curlm.


SVN revision: 15528
2005-06-24 15:01:59 +00:00
sebastid d233c9ca43 Set fd_handler to NULL after deletion.
SVN revision: 15527
2005-06-24 14:47:51 +00:00
sebastid d7317dfe80 indent
Check if the lib is inited before allowing ecore_con_url_new. Then we
don't need to check if the global variables are set.


SVN revision: 15526
2005-06-24 14:39:25 +00:00
sebastid 54caa33ce3 Free allocated memory on error.
Set pointer to NULL after free.


SVN revision: 15525
2005-06-24 14:31:51 +00:00
sebastid c6954d8592 Only increment init if init succeded.
Always free mem if init fails.


SVN revision: 15524
2005-06-24 14:26:01 +00:00
bangersnmash74 678cc6d50a Generic ecore_con_url implementation based on CURL
SVN revision: 15523
2005-06-24 13:38:27 +00:00
Carsten Haitzler 4eb5ded2ac simons client limiter patch
SVN revision: 14467
2005-04-29 04:51:31 +00:00
Carsten Haitzler 5856cddd6f autopackage ecore...
SVN revision: 13679
2005-03-10 15:19:43 +00:00
Kim Woelders 0d1f32f814 Add missing prototypes, associated cleanups.
SVN revision: 13616
2005-03-04 19:29:39 +00:00
Carsten Haitzler a2a2d0040f format
SVN revision: 13587
2005-03-03 08:54:09 +00:00
Carsten Haitzler de28192bda kwo's ecore cleanup patch
SVN revision: 13559
2005-03-02 07:06:44 +00:00
sebastid a34850b071 Typo.
SVN revision: 13410
2005-02-17 17:15:22 +00:00
Carsten Haitzler feb5571092 hidden symbol support
SVN revision: 12252
2004-11-25 05:18:31 +00:00
Carsten Haitzler 9b891c8217 some iccm
LDFLAGS.


SVN revision: 12128
2004-11-02 04:03:27 +00:00
Carsten Haitzler acfe995563 ok fix some things with SSL and ecore_evas. you ALWYAs have at least the api
to do ssl and al fo ecorE_evas stuff

BUt ecore_* may not be BUILT with that support
so the api stub exists
but it may just return NULL. theres calls to query for support here.


SVN revision: 11957
2004-10-22 03:41:49 +00:00
tsauerbeck f83c81433d mingw portability
SVN revision: 11926
2004-10-20 17:51:29 +00:00
tsauerbeck 63f3874903 better vim modelines for raster code
SVN revision: 11910
2004-10-19 16:50:27 +00:00
ncn fa6db0a70e Ecore_Con module documentation, timer functions cleaned up, Time functions linked into Ecore.h docs.
SVN revision: 11704
2004-09-23 04:58:16 +00:00
ncn 4dc39d4dfa Some restructuring, clean up, grouping, explaining, etc. Getting there...
SVN revision: 11696
2004-09-22 08:17:15 +00:00
Carsten Haitzler 535b7783cb diskcheck!
SVN revision: 10975
2004-07-23 04:57:04 +00:00
ncn b12cfbd710 Spelling fix in ecore.c.in, more docs for src/lib/ecore/ecore_list.c, fix in src/lib/ecore_con/ecore_con.c and new docs for src/lib/ecore_ipc/ecore_ipc.c.
SVN revision: 10962
2004-07-22 13:07:25 +00:00
rbdpngn 7363ea82b1 More documentation patches from Nicholas Curran.
Added a couple includes to fix builds on minimal systems.


SVN revision: 10841
2004-07-15 13:43:15 +00:00
tsauerbeck d6b340b674 try to connect the socket in the write branch of the fd handler, too. this seems to fix a bug where a SERVER_DATA event was delivered before/without a SERVER_ADD event
SVN revision: 10149
2004-05-09 20:23:23 +00:00
tsauerbeck b8edd19b2d don't use our own event_free callback when the default is good enough
SVN revision: 10140
2004-05-09 07:55:40 +00:00
tsauerbeck 4b81b7fdcd don't call SSL_read() resp. SSL_write() until we're connected
SVN revision: 10138
2004-05-08 23:44:56 +00:00
Carsten Haitzler c14dcbb000 more agressive buffering in ecore_con. basically allow the main loop's select
fo the flushing. this si good for ssl! :) also saves on syscalls :)


SVN revision: 9986
2004-05-01 02:25:00 +00:00
Carsten Haitzler ab01bcabdb hey guys! can u rememebr to add yourselves to AUTHORS?
SVN revision: 9978
2004-04-30 03:10:17 +00:00
tsauerbeck fdff6d615c put the read buffer back on the stack
SVN revision: 9899
2004-04-25 15:52:53 +00:00
tsauerbeck 1e0da5fe44 fixed ssl deadlock
SVN revision: 9898
2004-04-25 15:42:57 +00:00
Carsten Haitzler 4b2111867f ipc header compression as part of the protocol. this relies on previosu
header states and does delta's. it seems to give me about 50-70% compression
for the headers - not bad. also solved aligned memory access problem waiting
to happen... :)


SVN revision: 9870
2004-04-23 07:24:40 +00:00
Carsten Haitzler fbbfbfaa84 hmmm - why read_buf is in the struct so each server and client connection
PERMENANTLY uses 64kb of ram until closed? why? trill???? why does ssl need a
malloced buffer and cannot a buffer on the stack?


SVN revision: 9810
2004-04-20 11:40:44 +00:00
Carsten Haitzler 8f1862baf8 oops - kept in dbg
SVN revision: 9809
2004-04-20 09:32:57 +00:00
Carsten Haitzler 9403c932e5 oops - forgot to copy my fix to other side too!
SVN revision: 9808
2004-04-20 09:30:59 +00:00
tsauerbeck e6e0b3a0a4 i guess that's what you meant
SVN revision: 9723
2004-04-14 16:14:24 +00:00
Carsten Haitzler c1344875fa oops. printf left in.
SVN revision: 9721
2004-04-14 09:11:42 +00:00
Carsten Haitzler 38636f3cb1 fix a bug in ecore_ipc - damn.. how could that stay there? :)
and err - clean up some indenting etc...

trill - going to put n SSL server support too (ie ecore can act as SSL server
too) ?


SVN revision: 9720
2004-04-14 08:51:19 +00:00
tsauerbeck aece0e33c2 only call SSL_get_error() if the previous SSL call failed
SVN revision: 9712
2004-04-12 19:29:37 +00:00
Carsten Haitzler fd2532624a ecore_ipc now supports ssl too
SVN revision: 9620
2004-04-06 06:20:39 +00:00
tsauerbeck b2c6507ba0 Oops :)
SVN revision: 9587
2004-04-04 00:15:56 +00:00
tsauerbeck be6aef4797 ssl code fixes
SVN revision: 9585
2004-04-03 15:03:33 +00:00
tsauerbeck b15d59113e Use SSLv2 only at this time, gives much better results. Fixed SSL_write() handling.
SVN revision: 9569
2004-04-02 18:32:55 +00:00
tsauerbeck 34f5a0f58c Don't use #ifdef here
SVN revision: 9554
2004-04-01 16:41:27 +00:00
tsauerbeck e81c2946e8 Fixed a compilation error spotted by RbdPngn
SVN revision: 9553
2004-04-01 16:37:47 +00:00
tsauerbeck b3d3a59b95 Added basic ssl-client support to Ecore_Con
SVN revision: 9535
2004-03-31 16:47:45 +00:00
xcomputerman c5d822bf7b Permit explicit specification of socket path by using an absolute path in the service name.
SVN revision: 9508
2004-03-28 04:25:52 +00:00
Carsten Haitzler 75047789ad slight change in doc comments... get rid of htmlisms...
SVN revision: 9037
2004-02-20 07:06:29 +00:00
Carsten Haitzler f2739b6881 make moves and resizes immediate for ecore_evas - much mroe efficient :)
SVN revision: 8985
2004-02-16 02:26:38 +00:00
tsauerbeck 500ef41c6d init curstate before using it
SVN revision: 8563
2004-01-18 19:13:16 +00:00
rbdpngn dc2fa35658 Minor changes to ecore_config to make it compile on OS X.
SVN revision: 8236
2003-12-31 22:15:33 +00:00
rbdpngn 7f18c669d3 Oops, dereferencing a pointer after it's been freed.
SVN revision: 7918
2003-11-19 23:05:08 +00:00
swielinga 0c0ef02fb4 Fixed a couple of debs in e17/libs, added and updated a couple of .cvsignores.
SVN revision: 7872
2003-11-13 12:30:50 +00:00
Carsten Haitzler 1fdd7a0c0f handle stale sockets gracefully
SVN revision: 7824
2003-11-08 10:45:46 +00:00
rbdpngn d4613c5c70 Include netinet/in.h for connections to be portable to BSD.
Added the atom declarations for the NetWM application window properties.
Created ecore_x_window_prop_string_{set,get}.
Changed ecore_x_window_prop_title_{set,get} to use the new string functions.


SVN revision: 7531
2003-10-11 22:14:22 +00:00
vacuum 64231c6d19 include netinet/in.h so that INADDR_ANY is #defined on FreeBSD
SVN revision: 7506
2003-10-06 15:36:19 +00:00
Carsten Haitzler a5c2425084 damn you salizar! damn you!
errr. i mean. ecore moves to HEAD!


SVN revision: 7475
2003-09-23 08:09:32 +00:00