Commit Graph

171 Commits

Author SHA1 Message Date
Mike Blumenkrantz f8d56a023f a loooooooot of outdents and reformatting
SVN revision: 52397
2010-09-18 06:06:05 +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 8db37b8518 formatting
SVN revision: 52390
2010-09-18 01:20:25 +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 5d52fce3f6 rrrrrrrrrrrrrr stupid enum!
SVN revision: 50689
2010-07-30 17:03:34 +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
Mike Blumenkrantz fae76ddd77 correctly use & to detect server type instead of ==
SVN revision: 50630
2010-07-29 01:42:43 +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 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 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
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 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
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
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 d76f881898 * ecore_con: improve error detection.
SVN revision: 49551
2010-06-07 13:05:49 +00:00
Carsten Haitzler 79f1448682 CEEEEEEEEEEEEEEEEEEEEEEEEDRIC! *spank*
SVN revision: 48907
2010-05-16 03:04:18 +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
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 d1bdb785b1 fix warnings on opensolaris
SVN revision: 45219
2010-01-16 13:44:25 +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
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
Cedric BAIL d8e1895350 * ecore: Use eina_log.
Patch from Mathieu Taillefumier.


SVN revision: 44637
2009-12-21 17:32:19 +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
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
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
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
Vincent Torri 98fb9f9826 remove trailing spaces
SVN revision: 39624
2009-03-22 13:27:24 +00:00