Carsten Haitzler
a0f2602c29
compacter code.
...
SVN revision: 55107
2010-12-01 03:31:55 +00:00
Mike Blumenkrantz
1d759c88d1
only enable extensive ssl logging with compile define set to avoid massive slowdown
...
SVN revision: 55106
2010-12-01 03:19:28 +00:00
Carsten Haitzler
5a07bfe911
u know.. eina_list_free.. returns... NULL :)
...
SVN revision: 55105
2010-12-01 03:13:29 +00:00
Mike Blumenkrantz
98b7017026
remove redundant check
...
SVN revision: 55104
2010-12-01 03:02:03 +00:00
Mike Blumenkrantz
627b5343b8
type this as EB for correctness because I'm feeling pedantic
...
SVN revision: 55103
2010-12-01 02:44:20 +00:00
Mike Blumenkrantz
6941e966be
switch to EINA_BOOL values for delete_me, fix huge O(n) behavior in _ecore_main_fd_handlers_call; all fd operations now should see an exponential speed increase based on the number of fds that ecore is watching
...
SVN revision: 55102
2010-12-01 02:34:48 +00:00
Mike Blumenkrantz
63e11e2d82
use EINA_(TRUE/FALSE) instead of 1/0
...
SVN revision: 55101
2010-12-01 01:17:45 +00:00
Carsten Haitzler
5c3b45bf65
so... why.. do.. we .. not init.. all? :) how do we expect https and
...
friends to work... if we dont want them initted :)
SVN revision: 55079
2010-11-30 09:39:23 +00:00
Mike Blumenkrantz
7b3463a3ef
explicitly set eina error level, add a printf
...
10k fd test successfully passed! in 1.5 minutes :(
SVN revision: 55053
2010-11-29 07:07:16 +00:00
Mike Blumenkrantz
99fa106e8e
null pointer to avoid partial free in rare cases
...
SVN revision: 55046
2010-11-29 00:13:52 +00:00
Mike Blumenkrantz
3c05a283b6
fix weird bug where fdh in a list could become null
...
SVN revision: 55044
2010-11-28 22:03:07 +00:00
Mike Blumenkrantz
fd44ecf46c
fix annoying printfs that should be ERRs
...
SVN revision: 55043
2010-11-28 21:51:07 +00:00
Vincent Torri
a3ffd27636
remove win7 code and fix other minor problems
...
SVN revision: 55023
2010-11-26 18:41:43 +00:00
Vincent Torri
95f36c0e18
more fixes, but needs to remove Windows 7 code, now...
...
SVN revision: 55019
2010-11-26 15:34:30 +00:00
Vincent Torri
5c9cb60854
typo
...
SVN revision: 55015
2010-11-26 13:54:11 +00:00
Vincent Torri
6b4b7bc42d
add native win32 thread support in ecore_thread. Not tested a lot at all.
...
SVN revision: 55014
2010-11-26 13:50:31 +00:00
Vincent Torri
883850c5ec
on Windows, "C:" is not a directory, but a drive.
...
SVN revision: 55013
2010-11-26 13:47:51 +00:00
Vincent Torri
a636dab74d
declare alloca()
...
SVN revision: 55003
2010-11-26 08:06:19 +00:00
Sebastian Dransfeld
71b3b7f19b
TODO++
...
SVN revision: 54996
2010-11-25 19:08:08 +00:00
Sebastian Dransfeld
cfe7ae6528
listen for IN_ATTRIB and IN_CLOSE_WRITE
...
use IN_ATTRIB|IN_CLOSE_WRITE instead of IN_MODIFY. Now we get changes if
attributes change, and only event when a user closes a changed file.
IN_MODIFY will trigger an event each time a write is flush'ed.
SVN revision: 54961
2010-11-24 21:15:52 +00:00
Sebastian Dransfeld
d09a0965c5
print buf, not file
...
SVN revision: 54960
2010-11-24 21:15:36 +00:00
Sebastian Dransfeld
58fe7c7261
print all inotify events
...
SVN revision: 54959
2010-11-24 21:15:20 +00:00
Sebastian Dransfeld
9b4886777f
right func to check for dir
...
SVN revision: 54958
2010-11-24 21:15:04 +00:00
Vincent Torri
ba3c69df53
fix mouse event on Win XP, should be fixed on Win CE
...
SVN revision: 54938
2010-11-24 17:04:03 +00:00
Cedric BAIL
90b57c2ed0
* ecore: improve speed by reusing pipe and allocated structure.
...
SVN revision: 54896
2010-11-23 18:32:17 +00:00
Cedric BAIL
6f5333d336
* ecore: small cleanup.
...
SVN revision: 54893
2010-11-23 16:52:18 +00:00
Mike Blumenkrantz
6bed064f60
revert this for crankypants
...
SVN revision: 54888
2010-11-23 14:46:12 +00:00
Mike Blumenkrantz
24703f1433
I'm tired of you, ecore_getopt. now you get the hammer.
...
SVN revision: 54863
2010-11-23 11:10:41 +00:00
Mike Blumenkrantz
a1c347ecd5
more correctly fix no-option parsing to still parse when no non-arg options are found
...
SVN revision: 54862
2010-11-23 10:56:50 +00:00
Mike Blumenkrantz
c6732ad9cc
fix bug where getopt_parse returns argc as the first nonopt argument when there are no nonopt arguments
...
SVN revision: 54861
2010-11-23 10:36:15 +00:00
Mike Blumenkrantz
4a3a740a3a
fix bug where getopt_parse returns 1 when there are no args
...
SVN revision: 54860
2010-11-23 10:25:58 +00:00
Sebastian Dransfeld
d959bab700
Only remove from existing list
...
SVN revision: 54830
2010-11-22 20:51:20 +00:00
Gustavo Sverzut Barbieri
dd19bf1205
fix screensaver events, /me spanks raster (r53942)
...
SVN revision: 54791
2010-11-22 14:27:43 +00:00
Mike Blumenkrantz
ceec64fa76
to fix the bug that morlenxus found, I have crashed my own computer.
...
this commit fixes a rare case where a fdh can be in the delete list twice, causing a double free
SVN revision: 54702
2010-11-18 19:56:26 +00:00
Mike Blumenkrantz
12c4b5b595
fix annoying uninitialized value warning
...
SVN revision: 54699
2010-11-18 18:45:39 +00:00
Mike Blumenkrantz
080d4c8d35
remove the last (I think?) O(n) operation from ecore fd handling
...
SVN revision: 54669
2010-11-18 07:23:14 +00:00
Mike Blumenkrantz
fcd427bd43
spruce up error message a bit
...
SVN revision: 54667
2010-11-18 05:49:25 +00:00
Cedric BAIL
c381181854
* ecore: revert comment.
...
This code is here to prevent the premature death of thread when
apps killall of them, before recreating them again. This avoid
call to pthread_create and increase throughput. The only information
that I couldn't determine pragmatically is the timing. So that's
the time the main loop has to create another Ecore_Thread, before
needing to call pthread_create again.
SVN revision: 54633
2010-11-17 16:26:08 +00:00
Cedric BAIL
e2ea02acfa
* ecore: fix event_window for Ecore_SDL.
...
SVN revision: 54630
2010-11-17 13:53:04 +00:00
Mike Blumenkrantz
24c0ebda74
fix error handling of plaintext connect, print ERR on connect failure
...
SVN revision: 54624
2010-11-17 09:31:15 +00:00
Mike Blumenkrantz
92e255f0dc
benchmark/test apps for ecore_con server/client as well as fd handlers
...
SVN revision: 54623
2010-11-17 08:29:33 +00:00
Mike Blumenkrantz
a84f3febac
fix list removal for prep/buf functions to avoid annoying eina warnings
...
SVN revision: 54620
2010-11-17 06:57:29 +00:00
Mike Blumenkrantz
1fc9591c57
scaling optimizations round 2: add list for fd handler buffer functions
...
also delete fdhs from prep/buf lists on cleanups when possible
SVN revision: 54619
2010-11-17 06:50:52 +00:00
Mike Blumenkrantz
8edaf11298
clean up unused warnings
...
SVN revision: 54618
2010-11-17 06:41:41 +00:00
Mike Blumenkrantz
d9882a6c00
add doxy for ecore_main_fd_handler_prepare_callback_set, add massive optimization for fd handler scaling (only noticeable with 10000+ fd handlers) to only attempt running prep functions for handlers which have them
...
SVN revision: 54617
2010-11-17 06:24:49 +00:00
Mike Blumenkrantz
2747a8a86b
optimization pass #1 : 5% server speed increase
...
only get client ip addr when ecore_con_client_ip_get() is called, always stringshare ip addresses
SVN revision: 54612
2010-11-16 21:32:50 +00:00
Cedric BAIL
4fc861fe81
* ecore: raise gl_sdl priority over software_sdl.
...
SVN revision: 54595
2010-11-16 15:38:22 +00:00
Carsten Haitzler
a27ab1e696
see comment.
...
SVN revision: 54549
2010-11-14 09:00:24 +00:00
Mike Blumenkrantz
a32b3d4c8a
revert bitfielding of a bool to avoid possible abi break
...
SVN revision: 54530
2010-11-13 12:25:45 +00:00
Mike Blumenkrantz
858c38a922
unsigned char -> Eina_Bool cleanups; these files are in great need of documentation! if you know the code, please write help!
...
SVN revision: 54529
2010-11-13 12:01:55 +00:00
Mike Blumenkrantz
55da81c2ef
should be bool since we already include eina
...
SVN revision: 54521
2010-11-12 18:37:27 +00:00
Cedric BAIL
70e488feff
* efl: beta2 !
...
SVN revision: 54507
2010-11-12 16:01:55 +00:00
Cedric BAIL
e61f8560ea
* ecore: break Ecore_Thread API once and for all to make it consistent.
...
SVN revision: 54502
2010-11-12 13:28:19 +00:00
Bruno Dilly
0bc55e69b2
Fix typo in ecore AUTHORS
...
By Daniel Juyung Seo (SeoZ) <juyung.seo@samsung.com>
SVN revision: 54500
2010-11-12 13:08:50 +00:00
Mike Blumenkrantz
cc01698872
avoid looping infinitely while freeing servers, and don't log while freeing servers in case ecore_con's log domain has already been unregistered
...
SVN revision: 54479
2010-11-11 20:34:35 +00:00
Mike Blumenkrantz
3552a91b7d
only free clients that aren't waiting on events to free them to prevent a segv
...
SVN revision: 54478
2010-11-11 20:20:44 +00:00
Mike Blumenkrantz
c24c33cb54
fix bug where server disconnect event was not emitted, only set magic to none on clients/servers after final event has been emitted, and only null the data pointer at this point as well
...
SVN revision: 54476
2010-11-11 19:53:21 +00:00
Cedric BAIL
272a92e8f3
* ecore: fix mouse wheel for frame buffer.
...
Patch by Eduardo Felipe <eduardofelipe87@gmail.com>.
SVN revision: 54471
2010-11-11 18:45:16 +00:00
Miculcy Brian
f2c33e9bc0
Fix _ecore_file_path_from_env(), wrong strcpy source.
...
SVN revision: 54366
2010-11-09 14:09:16 +00:00
Iván Briano
da9f3a357e
ffs, bring these back in
...
SVN revision: 54325
2010-11-08 13:29:18 +00:00
Carsten Haitzler
65713eeb0f
no more debian dir in our svn - debian now handles this tehmselves.
...
SVN revision: 54294
2010-11-08 05:50:09 +00:00
Vincent Torri
48d416b359
Killer feature: Windows app can have icons, now.
...
The doc explains everything.
SVN revision: 54283
2010-11-07 20:29:08 +00:00
Mike Blumenkrantz
f334d907ae
robustify ssl handshaking by catching extremely rare cases when the session has been deleted between handshake calls usually caused by thousands of concurrent sessions. yes, I'm benchmarking.
...
SVN revision: 54269
2010-11-07 05:36:40 +00:00
Vincent Torri
c3530cb768
fix doc
...
SVN revision: 54252
2010-11-06 23:04:33 +00:00
Mike Blumenkrantz
d8ab13a85f
I got overexcited
...
SVN revision: 54242
2010-11-06 17:54:01 +00:00
Mike Blumenkrantz
b6acfbffc9
add ecore_con strings
...
SVN revision: 54241
2010-11-06 17:06:56 +00:00
Mike Blumenkrantz
76bdd30da0
add magic strings for ecore_con
...
SVN revision: 54240
2010-11-06 17:04:09 +00:00
Carsten Haitzler
75abb8f8a3
fix - don't call new event handler added for the SAMe event. defer
...
adding in a list and handle after all current ahndlers for the event
have been called.
SVN revision: 54212
2010-11-06 03:11:17 +00:00
Mike Blumenkrantz
fc6657453d
typo fix
...
SVN revision: 54211
2010-11-06 02:59:11 +00:00
Mike Blumenkrantz
8a87f08107
delete servers on 0
...
SVN revision: 54209
2010-11-06 01:57:45 +00:00
Sebastian Dransfeld
8706b49355
Check events on right handler
...
SVN revision: 54208
2010-11-06 01:23:01 +00:00
Sebastian Dransfeld
bc8a34b688
formatting
...
SVN revision: 54207
2010-11-06 01:22:50 +00:00
Sebastian Dransfeld
46cf959d70
Declaration at beginning of block
...
SVN revision: 54206
2010-11-06 01:22:40 +00:00
Sebastian Dransfeld
5fc5dcc215
Right fix for alloc
...
Actually we already checked that num != 0, but lacked num < 0 for one of
the allocs
SVN revision: 54205
2010-11-06 01:22:29 +00:00
Mike Blumenkrantz
e289280418
add ecore_con_client_connected_get to avoid people scratching their heads and wondering how the hell they're supposed to know if a client has disconnected
...
SVN revision: 54204
2010-11-06 00:17:04 +00:00
Mike Blumenkrantz
a5489cd5c7
remove erroneous return, add some debug info
...
SVN revision: 54203
2010-11-05 23:48:15 +00:00
Mike Blumenkrantz
0a32ddcc31
fix some cases where refcount was <0 and so things were not being freed
...
SVN revision: 54199
2010-11-05 20:55:02 +00:00
Mike Blumenkrantz
add4a1d9a4
fix disconnect conditions for non-ssl reads
...
SVN revision: 54197
2010-11-05 19:46:48 +00:00
Sebastian Dransfeld
589e832cb7
Check whether we actually want to alloc data
...
SVN revision: 54179
2010-11-05 13:11:52 +00:00
Mike Blumenkrantz
8a66dd5b56
++ecore_event_handler_data_{set,get}
...
SVN revision: 54162
2010-11-04 20:51:17 +00:00
Mike Blumenkrantz
6c1cd431a2
malloc check
...
SVN revision: 54156
2010-11-04 15:48:17 +00:00
Mike Blumenkrantz
2b0ff1a99f
for some reason we weren't setting write on fds when all data had not been sent. this should make ecore_con MUCH snappier
...
SVN revision: 54155
2010-11-04 15:01:05 +00:00
Mike Blumenkrantz
b9fade7530
more refactoring, fix bug that was exposed where a completed ssl read (which returns 0 bytes) causes disconnect
...
SVN revision: 54134
2010-11-03 19:38:00 +00:00
Mike Blumenkrantz
3ffb7e4c16
use safety macros to check mallocs, remove some dead code, optimize read loops by removing them, refactor a lot of code to not be indented halfway across the screen
...
SVN revision: 54133
2010-11-03 19:08:31 +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
Mike Blumenkrantz
33c81c1983
add some safety checks so people can see wtf went wrong when sends fail
...
SVN revision: 54125
2010-11-03 16:11:12 +00:00
Carsten Haitzler
be6cf01bb8
make sure it has dynamic hint set.
...
SVN revision: 54114
2010-11-03 04:08:09 +00:00
Mike Blumenkrantz
ecd54f41fe
because SUCCESS is not an error.
...
SVN revision: 54078
2010-11-01 20:46:39 +00:00
Mike Blumenkrantz
01760826bb
only free when exists
...
c/o vtorri
SVN revision: 54075
2010-11-01 11:24:29 +00:00
Mike Blumenkrantz
57cee09e0d
eh I guess I'll clean up a little bit on failure too
...
SVN revision: 54074
2010-11-01 07:11:25 +00:00
Mike Blumenkrantz
025cfe4c67
fix incorrect realloc usage
...
SVN revision: 54073
2010-11-01 07:10:07 +00:00
Carsten Haitzler
0d32e98d24
alloca - not strdupa.
...
SVN revision: 54068
2010-10-31 12:53:50 +00:00
Mike Blumenkrantz
e4439fb0c6
add a sweet DBG logging function for gnutls because logging info rules
...
SVN revision: 53980
2010-10-29 04:31:16 +00:00
Mike Blumenkrantz
c469c5bddf
comment out all psk code since I haven't implemented it yet, fix gnutls servers (how the hell did it break?????)
...
SVN revision: 53979
2010-10-28 23:51:08 +00:00
Mike Blumenkrantz
4ca9db7909
a little bit of reformatting, be explicit with dhp allocation, and add server verification for client certs (apparently I was off my cut and paste game that day)
...
SVN revision: 53974
2010-10-28 18:25:35 +00:00
Mike Blumenkrantz
446c27ac31
remove dead code
...
SVN revision: 53973
2010-10-28 18:24:22 +00:00
Eduardo de Barros Lima
454f896043
Ecore: Decide whether library will be built or not in upper level
...
As requested by vtorri. :D
SVN revision: 53967
2010-10-28 16:37:41 +00:00
Mike Blumenkrantz
a09f61a9f8
remove unnecessary ifdef
...
SVN revision: 53965
2010-10-28 16:07:47 +00:00
Mike Blumenkrantz
b40a8e7efe
wnen I said gnutls on my last commit, I really meant openssl. but when I say gnutls on this commit, I mean gnutls. really.
...
SVN revision: 53961
2010-10-28 14:48:25 +00:00
Mike Blumenkrantz
9e5e01219c
add more gnutls info for dhp generation so you can tell if it ever stops
...
SVN revision: 53959
2010-10-28 14:07:47 +00:00