Rafael Antognolli
4bd6379356
ecore/ecore_con - improved documentation and added example.
...
Just ecore_con_init, shutdown and lookup documented for now.
SVN revision: 61050
2011-07-05 13:09:57 +00:00
Mike Blumenkrantz
58d3ee0924
unify more event handling, fix a little formatting
...
SVN revision: 61025
2011-07-05 00:06:27 +00:00
Rafael Antognolli
60aa52189d
ecore/ecore_con - Make ecore_con_lookup() work with ipv4 too
...
SVN revision: 61021
2011-07-04 20:04:18 +00:00
Mike Blumenkrantz
d932f0b0c5
ecore_con_server_timeout_g/set now apply to client-type servers
...
CAN'T SLEEP
MUST HACK
SVN revision: 60445
2011-06-17 11:16:50 +00:00
Mike Blumenkrantz
64731e1dc9
+ecore_con_ssl_server_upgrade
...
+ecore_con_ssl_client_upgrade
+ECORE_CON_EVENT_SERVER_UPGRADE
+ECORE_CON_EVENT_CLIENT_UPGRADE
new functions for upgrading an existing plaintext connection to SSL/TLS, as seen in STARTTLS and my nightmares
SVN revision: 60359
2011-06-15 18:58:34 +00:00
Vincent Torri
3e9bc8fddd
Ecore: ecore_con : make ecore_con work on Windows
...
The ecore_con module needed a port of the local connections
with named pipes. The other connections (TCP, UDP) are using
BSD sockets, which are also used on Windows.
No abstract sockets on Windows.
NB: Should I backport that commit to 1.0 ?
SVN revision: 59385
2011-05-14 17:52:30 +00:00
Vincent Torri
b9ed03b15d
formatting
...
SVN revision: 59031
2011-04-29 07:34:12 +00:00
Vincent Torri
2d4b272338
Ecore: ecore_con: add some checks and formatting
...
* add checks for the fd handlers
* reformat a bit _ecore_con_svr_tcp_handler()
SVN revision: 59030
2011-04-29 07:22:53 +00:00
Daniel Juyung Seo
6ef3841a37
Ecore: Removed trailing whitespaces.
...
SVN revision: 58753
2011-04-20 14:15:33 +00:00
Vincent Torri
f2247fb7e3
Ecore ecore_con:
...
* include arpa/inet.h if it is detected
* use correct types
* small cleanup
SVN revision: 57503
2011-03-03 21:05:28 +00:00
Mike Blumenkrantz
d704222f1c
only log error events for actual errors
...
SVN revision: 57065
2011-02-15 20:17:48 +00:00
Mike Blumenkrantz
276eccb1bf
+ecore_con_client_port_get
...
SVN revision: 56950
2011-02-11 07:38:27 +00:00
Mike Blumenkrantz
8c9577dc2a
rewrite all event handler code to be unified, always increment server event count for client events (previously was only incremented on some events randomly)
...
SVN revision: 56933
2011-02-10 19:17:30 +00:00
Mike Blumenkrantz
daafddb571
implement full event-driven error messaging api for all non-curl ecore_con
...
docs are in the header, happy birthday cedric
SVN revision: 56894
2011-02-10 08:49:23 +00:00
Mike Blumenkrantz
17930e3b31
fix segv
...
SVN revision: 56314
2011-01-27 03:23:05 +00:00
Carsten Haitzler
dca85251b0
dns async lookup fix - if u del svr before dns lookup done
...
SVN revision: 56254
2011-01-21 10:01:04 +00:00
Cedric BAIL
d2d54ecad6
* ecore: SO_REUSEADDR in all case.
...
Patch thanks to Raoul Hecky < raoul.hecky at gmail.com >
SVN revision: 56253
2011-01-21 09:45:38 +00:00
Mike Blumenkrantz
989a3f0693
avoid closing stdout (fd0)
...
SVN revision: 55959
2011-01-06 22:35:31 +00:00
Carsten Haitzler
2f564887ec
formatting
...
SVN revision: 55624
2010-12-18 01:47:29 +00:00
Sebastian Dransfeld
df817afd9a
only check errno if num < 0
...
SVN revision: 55611
2010-12-17 12:09:14 +00:00
Mike Blumenkrantz
14751dc4a1
add notes to prevent future breaking of ecore_con_ssl
...
SVN revision: 55606
2010-12-17 09:02:44 +00:00
Sebastian Dransfeld
3ce611e057
formatting
...
SVN revision: 55605
2010-12-17 08:48:36 +00:00
Sebastian Dransfeld
a8780986e8
don't accept 0 return
...
SVN revision: 55604
2010-12-17 08:44:53 +00:00
Sebastian Dransfeld
9a6b8adfec
only emit ECORE_CON_EVENT_SERVER_DATA when data
...
SVN revision: 55602
2010-12-17 08:15:52 +00:00
Cedric BAIL
ae9917c9f2
* ecore: SPANK ! SPANK ! SPANK !
...
The value of errno is only know when the result of a syscall
tell you to look at it. And don't set errno, that's a bad idea !
SVN revision: 55594
2010-12-16 13:16:40 +00:00
Cedric BAIL
8a4ad8c102
* ecore: fix obvious bug. But Ecore_Con with UDP session is
...
completly broken and no time to fix it.
Try elixir sample code:
http://code.google.com/p/freebox-elixir/source/browse/#svn%2Ftrunk%2Fexemples%2Fecore_con_udp
SVN revision: 55593
2010-12-16 13:08:49 +00:00
Carsten Haitzler
daafe9ee79
no - dont do http:// - then englebass is right need to do ftp://,
...
imap:// file:// .... the list never ends. the docs do explicitly say
its a hostname, NOT a url.
SVN revision: 55580
2010-12-16 08:07:10 +00:00
Mike Blumenkrantz
5af9081342
finally fix stupid ssl read bug for long transfers! also added a couple more error checks and reordered things to read a little better
...
SVN revision: 55577
2010-12-16 07:43:48 +00:00
Mike Blumenkrantz
913852ba34
validate name better, fix super frustrating bug where connections would inexplicably die if prefixed with http[s]://
...
SVN revision: 55573
2010-12-16 05:13:29 +00:00
Mike McCormack
bdf1b4b330
From: Mike McCormack <mj.mccormack@samsung.com>
...
Subject: [E-devel] [PATCH 1/4] ecore_con: Always close fd after remove
fdh from main loop
SVN revision: 55570
2010-12-16 04:38:37 +00:00
Mike Blumenkrantz
ee1d0dbc23
use more explicit error checks
...
SVN revision: 55498
2010-12-11 16:51:29 +00:00
Mike Blumenkrantz
e17077e3f4
avoid writing <= 0 bytes to clients
...
SVN revision: 55433
2010-12-09 21:04:22 +00:00
Mike Blumenkrantz
4912e6dc4f
this error fix is dedicated to Tommy[D] for continuing to prove that the impossible can still be possible on his system
...
SVN revision: 55432
2010-12-09 21:02:53 +00:00
Mike Blumenkrantz
4440764c78
reorder a little, fix bug where client_del event was never sent if it had send data in its buffer
...
question to think on: should a deleted client be allowed to finish sending its data or should it be killed immediately?
SVN revision: 55391
2010-12-09 06:43:58 +00:00
Mike Blumenkrantz
3b86fed32f
avoid loooooooooooooots of ecore spankies
...
SVN revision: 55390
2010-12-09 06:16:13 +00:00
Mike Blumenkrantz
55d73aee65
aha! found the leak and eliminated it!
...
SVN revision: 55176
2010-12-03 06:14:30 +00:00
Mike Blumenkrantz
b26182d35b
avoid segv
...
SVN revision: 55118
2010-12-01 10:33:07 +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
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
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
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
Mike Blumenkrantz
76bdd30da0
add magic strings for ecore_con
...
SVN revision: 54240
2010-11-06 17:04:09 +00:00
Mike Blumenkrantz
8a87f08107
delete servers on 0
...
SVN revision: 54209
2010-11-06 01:57:45 +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