Commit Graph

14 Commits

Author SHA1 Message Date
Mike Blumenkrantz 828dce5677 complete rewrite of c-ares fd handling: fixes an instance of ticket #637 and also integrates with main loop much more nicely
SVN revision: 55958
2011-01-06 22:32:25 +00:00
Mike Blumenkrantz 9b17481f53 handle ARES_ECONNREFUSED
SVN revision: 55473
2010-12-11 00:25:46 +00:00
Mike Blumenkrantz 0c1efd9afd handle ARES_ENODATA more gracefully
SVN revision: 55371
2010-12-08 14:00:37 +00:00
Mike Blumenkrantz d15d81161f avoid magic fail on already-freed handler
SVN revision: 55280
2010-12-05 07:30:17 +00:00
Mike Blumenkrantz 88ca4717d1 formatting cleanups
SVN revision: 55109
2010-12-01 04:42:29 +00:00
Mike Blumenkrantz fd44ecf46c fix annoying printfs that should be ERRs
SVN revision: 55043
2010-11-28 21:51:07 +00:00
Mike Blumenkrantz 8edaf11298 clean up unused warnings
SVN revision: 54618
2010-11-17 06:41:41 +00:00
Mike Blumenkrantz ddd151bf37 reformat using ecrustify because uncrustify dicked it up previously
SVN revision: 54128
2010-11-03 17:58:37 +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
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
Cedric BAIL fbe9064310 * ecore: Ecore callback really should return Eina_Bool.
SVN revision: 49829
2010-06-24 16:15:56 +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
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
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