Commit Graph

286 Commits

Author SHA1 Message Date
Mike Blumenkrantz b40fa86b4a +ecore_con_ssl_server_verify_name_set/get
SVN revision: 66002
2011-12-08 01:14:55 +00:00
Mike Blumenkrantz 77f039eb73 @since
SVN revision: 65939
2011-12-06 05:20:13 +00:00
Mike Blumenkrantz 88a69e2a8f fix some ssl socks buggies
SVN revision: 65937
2011-12-06 04:48:55 +00:00
Mike Blumenkrantz 0099b08234 introducinggggggggggggggg <drum roll>:
ECORE-CON-SOCKS! SOCKS ON!!!!

now ecore_con supports socks (v4 and v4a only, so no ipv6) connections natively for making remote connections
for those of you who want their apps to start proxying immediately, just update and export this handy environment variable:
ECORE_CON_SOCKS_V4=[user@]PROXY_IP_ADDRESS:PROXY_PORT[:1] <--use :1 here to enable dns lookups on the proxy


SVN revision: 65934
2011-12-06 03:32:16 +00:00
Mike Blumenkrantz 9cc624c718 add some INF messages for connection death
SVN revision: 65835
2011-12-03 03:50:20 +00:00
Carsten Haitzler d3e45fc7a7 fix ecore-con tracking of event count lists for clients!!! thanks
valgrind!



SVN revision: 65647
2011-11-28 12:06:50 +00:00
Mike Blumenkrantz fd657b8fc4 also move magic unset to after all events come back so we don't break anyone's event handlers
SVN revision: 65426
2011-11-20 07:11:05 +00:00
Mike Blumenkrantz b2a76dbe65 attempt #1 to fix obscure disconnect crash
SVN revision: 65416
2011-11-20 00:28:48 +00:00
Vincent Torri bc17a43384 Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD
Patch by Fabien Romano from OpenBSD


SVN revision: 65210
2011-11-14 22:25:07 +00:00
Mike Blumenkrantz 6ec1250a4d redo ecore-con shutdown to fix crashes if people are stupid and call ecore_con_shutdown() while servers exist and main loop is still running
SVN revision: 65036
2011-11-11 02:44:16 +00:00
Mike Blumenkrantz 47b58f75da fix null deref
SVN revision: 64963
2011-11-09 01:18:18 +00:00
Cedric BAIL 05d8a9cf3c ecore: improve ecore_con speed by using mempool.
SVN revision: 64814
2011-11-06 12:26:00 +00:00
Youness Alaoui 84e9551521 Ecore: IN6_IS_ADDR_V4MAPPED needs an in6_addr as input on OSX
SVN revision: 64090
2011-10-15 09:30:58 +00:00
Youness Alaoui 84796ed59b Ecore-con: Use inet_ntop instead of getnameinfo.
getnameinfo is a blocking call would would resolve a sockaddr into
its hostname, not into an IP address, so the ip_get should use the
inet_ntop call instead.

SVN revision: 63682
2011-09-29 21:05:20 +00:00
Youness Alaoui 1fc4a13f80 Ecore-con: Test for IPV6 availability
SVN revision: 63680
2011-09-29 21:04:54 +00:00
Youness Alaoui ed03a201ef ecore-con: Do not use TCP_NODELAY if netinet/tcp.h is not found
SVN revision: 63679
2011-09-29 21:04:45 +00:00
Mike Blumenkrantz 20eed93ea3 add ECORE_CON_EVENT_SERVER_WRITE ECORE_CON_EVENT_CLIENT_WRITE
SVN revision: 63364
2011-09-13 23:03:26 +00:00
Mike Blumenkrantz e982875277 more useless ecore-con functions: ecore_con_server_fd_get and ecore_con_client_fd_get
SVN revision: 63344
2011-09-12 08:30:22 +00:00
Mike Blumenkrantz 9d235b3fc7 switch over all buffers to use binbufs
SVN revision: 61423
2011-07-16 13:07:39 +00:00
Rafael Antognolli 050b0c7c73 ecore/ecore_con - Constify return of ecore_con_server_clients_get().
We can't change the returned list, since it's not a copy but the
internal list itself.



SVN revision: 61295
2011-07-12 14:37:08 +00:00
Rafael Antognolli 03d383c201 ecore/ecore_con - Move more function documentation to Ecore_Con.h
Some small fixes were also made to these docs.



SVN revision: 61294
2011-07-12 14:36:58 +00:00
Rafael Antognolli 226b09c172 ecore/ecore_con - Set timer pointers to NULL when exiting them.
Otherwise this will lead to errors when some code does:
if (cl->until_deletion)
    ecore_timer_del(cl->until_deletion);



SVN revision: 61127
2011-07-07 18:18:53 +00:00
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