Stefan Metzmacher
a27c6eb8e2
lib/tsocket: add tsocket_readv_send/recv()
...
metze
2009-03-19 16:25:56 +01:00
Stefan Metzmacher
6c8bd1005d
lib/tsocket: add tsocket_writev_queue_send/recv()
...
metze
2009-03-19 16:25:55 +01:00
Stefan Metzmacher
2e44ceaea8
lib/tsocket: add tsocket_writev_send/recv()
...
metze
2009-03-19 16:25:55 +01:00
Stefan Metzmacher
a140823cc9
lib/tsocket: add tsocket_connect_send/recv()
...
metze
2009-03-19 16:25:54 +01:00
Stefan Metzmacher
4002b7bdc1
lib/tsocket: add tsocket_sendto_queue_send/recv()
...
metze
2009-03-19 16:25:54 +01:00
Stefan Metzmacher
9ed7a45c88
lib/tsocket: add tsocket_sendto_send/recv()
...
metze
2009-03-19 16:25:54 +01:00
Stefan Metzmacher
ccfd6a6e39
lib/tsocket: add tsocket_recvfrom_send/recv()
...
metze
2009-03-19 16:25:53 +01:00
Stefan Metzmacher
6c88d61bdd
lib/tsocket: add an implementation for bsd style sockets.
...
metze
2009-03-19 16:25:53 +01:00
Stefan Metzmacher
c00126e609
lib/tsocket: add a tsocket_guide.txt with a description of the design
...
metze
2009-03-19 16:25:52 +01:00
Stefan Metzmacher
d848d517b5
lib/tsocket: add some useful helper functions
...
metze
2009-03-19 16:20:22 +01:00
Stefan Metzmacher
2e0e416676
lib/tsocket: add generic socket abstraction layer
...
This will replace source4/lib/socket/.
metze
2009-03-19 15:01:12 +01:00
Stefan Metzmacher
36e7045340
tevent: fix the nesting logic
...
Only tevent_loop_once and tevent_loop_until() should care
about the nesting level.
This fixes the samba3 printing code where we use tevent_loop_wait()
and don't allow nested events.
We still call the nesting hook for all levels, we need to decide
if we really want this...
metze
2009-03-19 14:39:22 +01:00
Andrew Tridgell
13b6663e23
fixed a logic bug in the tevent nesting code
...
The event nesting code never triggered as nesting.level was never
greater than 1. The main event loop needs to increase the nesting
level by 1.
I also added a paranoia check to the nesting setup call. The API as
currently written cannot support multiple nesting hooks, so we need to
abort if multiple hooks are tried.
2009-03-19 11:21:36 +11:00
Timur
a3d04991ef
build: fix detection of netinet/ip.h on FreeBSD
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Timur
e8aa7169a6
build: format the header check for netinet/ip.h more nicely
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Stefan Metzmacher
7d07266ca2
tevent: change version to 0.9.5 after the ABI has changed
...
metze
2009-03-17 20:19:11 +01:00
Stefan Metzmacher
9eaf53d98e
tevent: store the location where a request was finished
...
This is very useful to find bugs.
You can use 'p *req' in gdb to show where
tevent_req_done(), tevent_req_error() or tevent_req_nomem()
was called.
metze
2009-03-17 20:17:01 +01:00
Stefan Metzmacher
3a831e4620
tevent: use an immediate event as trigger for tevent_queue
...
metze
2009-03-17 19:59:09 +01:00
Stefan Metzmacher
4bdf299385
tevent: use an immediate event fot tevent_req_post()
...
Now tevent_req_post() never fails
metze
2009-03-17 19:59:08 +01:00
Stefan Metzmacher
a78cd2a24b
tevent: use TALLOC_FREE() in tevent_req.c
...
metze
2009-03-17 19:59:08 +01:00
Stefan Metzmacher
66886f8966
tevent: add support for immediate events
...
They're like directly triggered timed events,
but you can preallocated them and scheduling them
will not fail.
metze
2009-03-17 19:59:00 +01:00
Stefan Metzmacher
940e61846e
tevent: add tevent_common_loop_wait() helper function and use it
...
tevent_loop_wait should do the same for all backends.
It should loop as long as we have pending events.
metze
2009-03-17 19:58:57 +01:00
Stefan Metzmacher
0139befb91
tevent: check signal events first in event_loop_once
...
We also check for signal events directly before and after
the select/epoll calls.
metze
2009-03-17 19:58:56 +01:00
Stefan Metzmacher
3af7db3dce
tevent: let tevent_loop_once() just run one fd event
...
This makes the logic much simpler for the callers,
and matches the samba3 behavior.
If needed we can add performance tunning for tevent_loop_wait()
later.
metze
2009-03-17 19:58:55 +01:00
Volker Lendecke
b693f7f067
Remove some transitional code in writev_send
2009-03-17 17:31:22 +01:00
Volker Lendecke
54b9ad4f1f
Remove some unused code from async_req.[ch]
2009-03-16 20:45:55 +01:00
Stefan Metzmacher
752cf03bf7
talloc: change version to 1.3.0
...
metze
2009-03-16 11:14:54 +01:00
Stefan Metzmacher
6d4a13241a
talloc: add useful talloc_array_length() macro
...
metze
2009-03-16 11:14:53 +01:00
Stefan Metzmacher
a3998832db
talloc: add TALLOC_ZERO()
...
metze
2009-03-16 11:14:53 +01:00
Stefan Metzmacher
099d6f05cd
lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() are available
...
metze
2009-03-16 11:14:52 +01:00
Jelmer Vernooij
c223beee2a
Merge branch 'tdr' of /home/jelmer/samba4
2009-03-15 14:57:58 +01:00
Jelmer Vernooij
7972d82436
Remove -L/usr/lib from a couple more make variables.
2009-03-15 00:54:55 +01:00
Jelmer Vernooij
3eede51ecb
tdr: Remove dependency on lp_* so it can be used in both Samba 3 and
...
Samba 4.
2009-03-15 00:54:29 +01:00
Jelmer Vernooij
4638633308
Move tdr to top-level.
2009-03-14 21:57:44 +01:00
Stefan Metzmacher
868f3f5f32
tevent: change version to 0.9.4 as the ABI has changed
...
metze
2009-03-13 15:49:35 +01:00
Tim Prouty
a84f939f4f
tevent: Fix might be unitialized warning
2009-03-12 12:28:13 -07:00
Stefan Metzmacher
cb388882cf
tevent: add tevent_loop_until()
...
This is only a hack for samba4 and should not be used
in new code.
metze
2009-03-12 14:21:26 +01:00
Stefan Metzmacher
7142ef49bd
tevent: add tevent_loop_set_nesting_hook()
...
This is an ugly hack to let the s4 server work arround
some bugs related to nested events and uid changing.
metze
2009-03-12 14:21:26 +01:00
Stefan Metzmacher
06f88fe7a2
tevent: don't allow nested tevent_loop_once() anymore
...
Incompatible caller should use tevent_loop_allow_nesting()
function.
metze
2009-03-12 12:14:18 +01:00
Stefan Metzmacher
9932fd2d9a
tevent: pass __location__ to tevent_loop_once/wait()
...
metze
2009-03-12 12:12:34 +01:00
Stefan Metzmacher
880d9d6d8c
tevent: add tevent_set_abort_fn()
...
metze
2009-03-12 12:04:33 +01:00
Stefan Metzmacher
43a7d48d24
tevent: add tevent_signal_support()
...
Not every tevent backend supports signal events.
metze
2009-03-12 12:04:31 +01:00
Stefan Metzmacher
7a8b97ec2b
talloc: add talloc_set_abort_fn()
...
metze
2009-03-12 12:04:31 +01:00
Stefan Metzmacher
b96aa69dff
async_sock: fix truncating of the temporary iovec in writev_send/recv()
...
Volker: please check!
metze
2009-03-11 17:33:30 +01:00
Stefan Metzmacher
082bea67af
lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
...
This should fix the build on some hosts.
metze
2009-03-11 08:08:14 +01:00
Stefan Metzmacher
825949b810
tevent: add tevent_req_callback_data_void() macro
...
Callers can use it instead of tevent_req_callback_data()
if they use a non talloc private pointer.
metze
2009-03-10 16:44:44 +01:00
Stefan Metzmacher
09d1b2324c
tevent: add tevent_req_received() function
...
This function can be called as last action of a _recv()
function, it destroys the data attached to the tevent_req.
metze
2009-03-10 16:44:44 +01:00
Stefan Metzmacher
143b222546
socket_wrapper: wrap readv() and writev()
...
metze
2009-03-10 08:15:48 +01:00
Jelmer Vernooij
218ce0e805
Fix prototype mismatch.
2009-03-09 21:49:44 +01:00
Jelmer Vernooij
3b181564c5
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2009-03-09 21:42:13 +01:00