1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00
Volker Lendecke dca572ff1c lib: Enhance poll_funcs_tevent for multiple tevent_contexts
With this patch it will be possible to use nested event contexts with
messaging_filtered_read_send/recv. Before this patchset only the one and only
event context a messaging_context is initialized with is able to receive
datagrams from the unix domain socket. So if you want to code a synchronous
RPC-like operation using a nested event context, you will not see the reply,
because the nested event context does not have the required tevent_fd's.
Unfortunately, this patchset has to add some advanced array voodoo. The idea
is that state->watches[] contains what we hand out with watch_new, and
state->contexts contains references to the tevent_contexts. For every watch we
need a tevent_fd in every event context, and the routines make sure that the
arrays are properly maintained.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-05-08 09:10:12 +02:00
..
2012-03-24 17:11:11 +01:00
2013-02-19 17:31:32 +01:00
2014-02-20 22:58:58 +01:00
2013-11-11 21:04:09 +01:00
2013-06-25 12:54:00 +02:00
2013-12-05 03:06:10 +01:00
2012-09-18 14:30:25 +02:00
2012-04-17 10:21:02 +02:00
2012-04-17 10:21:02 +02:00
2012-07-18 15:54:20 -07:00
2012-07-18 15:54:20 -07:00
2012-09-19 01:16:25 +02:00
2012-05-15 18:24:10 +02:00
2014-04-23 22:33:08 +02:00
2014-04-13 16:55:05 +02:00
2012-04-19 19:13:45 +02:00