1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
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
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
Volker Lendecke
fe486d7b9f Add "queue" to writev_send
Unless higher levels queue themselves somehow, writev will *always* be queued.
So the queueing should be done at the right level.
2009-03-08 11:20:59 +01:00
Simo Sorce
67d41d0fc7 Make struct tevent_req opaque
Move struct tevent_req in tevent_internal, and ad getters and setters
for private data and the callback function.
This patch also renames 'private_state' into 'data'. What is held in this
pointer is in fact data and not a state like enum tevent_req_state.
Calling it 'state' is confusing.

The functions addedd are:
tevent_req_set_callback() - sets req->async.fn and req->async.private_data
tevent_req_set_print_fn() - sets req->private_print
tevent_req_callback_data() - gets req->async.private_data
tevent_req_data() - gets rea->data

This way it is much simpler to keep API/ABI compatibility in the future.
2009-03-02 11:02:09 -05:00
Volker Lendecke
ddd3da8ab7 Simplify async_connect_send slightly 2009-02-28 12:32:22 +01:00
Volker Lendecke
423c1d88fc Remove async_req based async_send 2009-02-25 13:04:19 +01:00
Volker Lendecke
00ad0c4a43 Remove async_req based async_recv 2009-02-25 13:04:18 +01:00
Volker Lendecke
25df6d7413 Add more conventional async_recv 2009-02-24 20:40:48 +01:00
Volker Lendecke
a60480b71a Add more conventional async_send 2009-02-24 20:40:48 +01:00
Volker Lendecke
08f028f179 Remove unused param_connect struct 2009-02-24 20:40:48 +01:00
Volker Lendecke
bbbdfa2056 Remove unused recvall 2009-02-24 20:40:48 +01:00
Volker Lendecke
4021029cdd Add async read_packet 2009-02-24 20:40:47 +01:00
Volker Lendecke
f9df355bef Fix async writev 2009-02-24 20:40:47 +01:00
Volker Lendecke
e50075a580 Remove async sendall 2009-02-24 20:40:47 +01:00
Volker Lendecke
76c6330dfb Add async writev 2009-02-24 20:40:47 +01:00
Volker Lendecke
39976035eb Convert async_connect to tevent_req 2009-02-24 20:40:47 +01:00
Kai Blin
612c5e746b async_sock: Use tevent_timeval instead of timeval functions 2009-02-17 09:19:31 +01:00
Tim Prouty
1696298aad s3 async: Fix the build on systems that have ETIMEDOUT but not ETIME
Fallback on EAGAIN
2009-02-09 13:23:44 -08:00
Kai Blin
b8cafc5ad2 async_sock: Map ASYNC_REQ_TIMEOUT to ETIMEDOUT instead of ETIME
Also, fall back to EIO if ETIMEDOUT is not present
2009-02-09 12:13:58 +01:00
Kai Blin
c3b9b6c8aa async_sock: Use unix errnos instead of NTSTATUS
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would
be pointless to convert to errno first and to wbcErr later.
2009-02-09 08:36:08 +01:00
Volker Lendecke
d3f9b0fab6 Next step disentangling async_req from NTSTATUS
Now I need to document this :-)
2009-02-02 20:15:03 +01:00
Volker Lendecke
c14b7e648b Split up async_req into a generic and a NTSTATUS specific part 2009-02-01 19:05:39 +01:00
Kai Blin
ab63bad94b async_sock: Move to top level 2009-01-28 11:35:32 +01:00
Kai Blin
a7e620522e async_req: Fix the S4 build 2009-01-27 12:38:11 +01:00
Kai Blin
481183ab02 s4: add ../lib/async_req to the s4 build 2009-01-23 17:57:33 +01:00
Kai Blin
85b36d95fb async_req: Move to top level dir 2009-01-23 17:57:33 +01:00