summaryrefslogtreecommitdiffstats
path: root/lib/async_req
Commit message (Collapse)AuthorAgeFilesLines
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-081-1/+1
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* Add wait_for_read_send/recvVolker Lendecke2011-07-282-0/+60
| | | | Wait for readability of a socket as a tevent_req
* Fix bug #8197 - winbind does not properly detect when a DC connection is dead.Jeremy Allison2011-06-061-6/+32
| | | | | | | | | | | | | | | Only waiting for writability doesn't get fd errors back with poll. So always begin by selecting for readability, and if we get it then see if bytes were available to read or it really is an error condition. If bytes were available, remove the select on read as we know we will retrieve the error when we've finished writing and start reading the reply (or the write will timeout or fail). Metze and Volker please check. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Jun 6 21:53:16 CEST 2011 on sn-devel-104
* async_rec/async_sock.c - add an additional "const"Matthias Dieter Wallnöfer2011-03-231-1/+2
| | | | | | | | | In order to suppress a build warning. Acked-by: Volker and Metze Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed Mar 23 10:26:23 CET 2011 on sn-devel-104
* s3-waf: add UTIL_TEVENT subsystem (as in ../lib/util/wscript)Günther Deschner2011-02-141-1/+2
| | | | Guenther
* Use sockaddr_storage in async sendto/recvfromVolker Lendecke2010-12-292-11/+28
|
* async_send->sendto, async_recv->recvfromVolker Lendecke2010-12-282-42/+53
|
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-4/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4-waf: inline LIBREPLACE_NETWORK into 'replace'Stefan Metzmacher2010-04-121-1/+1
| | | | metze
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-3/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+9
|
* async_sock: return -1/EPIPE if we're getting an end of file on read.Stefan Metzmacher2009-09-211-0/+4
| | | | | | This makes the error handling in the callers easier. metze
* Fix a = vs == error in writev_handlerVolker Lendecke2009-06-151-1/+1
|
* async_sock: try fix the source4 build on FreeBSD, Solaris, SLES8Stefan Metzmacher2009-06-083-6/+11
| | | | metze
* Fix an uninitialized variable read in async_connect_sendVolker Lendecke2009-06-061-5/+5
|
* Only err on readability if writev_send was explicitly asked to do soVolker Lendecke2009-06-041-1/+1
| | | | A socket might be readable for other reasons
* Handle EINTR in async_sock.cVolker Lendecke2009-05-301-0/+16
|
* libwbclient: Add async call framework.Kai Blin2009-05-302-2/+3
|
* async_sock: Change license to LGPLv3+Volker Lendecke2009-05-292-16/+24
|
* Change async_connect to use connect instead of getsockopt to get the errorVolker Lendecke2009-05-241-14/+24
| | | | | On my Linux box, this is definitely the more reliable strategy with unix domain sockets, and according to my tests it also works correctly with TCP sockets.
* Add "err_on_readability" to writev_sendVolker Lendecke2009-05-242-2/+14
| | | | | | A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
* Allow NULL queue to writev_sendVolker Lendecke2009-05-241-6/+16
|
* Remove async_reqVolker Lendecke2009-04-087-614/+1
|
* Use recv instead of read in read_packet_handlerVolker Lendecke2009-04-051-1/+2
| | | | This way the socket wrapper pcap file also sees the replies :-)
* Remove some transitional code in writev_sendVolker Lendecke2009-03-171-17/+1
|
* Remove some unused code from async_req.[ch]Volker Lendecke2009-03-162-51/+0
|
* async_sock: fix truncating of the temporary iovec in writev_send/recv()Stefan Metzmacher2009-03-111-1/+1
| | | | | | Volker: please check! metze
* Add "queue" to writev_sendVolker Lendecke2009-03-082-3/+30
| | | | | Unless higher levels queue themselves somehow, writev will *always* be queued. So the queueing should be done at the right level.
* Make struct tevent_req opaqueSimo Sorce2009-03-021-20/+20
| | | | | | | | | | | | | | | | 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.
* Simplify async_connect_send slightlyVolker Lendecke2009-02-281-9/+6
|
* Remove async_req based async_sendVolker Lendecke2009-02-252-240/+0
|
* Remove async_req based async_recvVolker Lendecke2009-02-252-71/+0
|
* Add more conventional async_recvVolker Lendecke2009-02-242-0/+72
|
* Add more conventional async_sendVolker Lendecke2009-02-242-0/+73
|
* Remove unused param_connect structVolker Lendecke2009-02-241-11/+0
|
* Remove unused recvallVolker Lendecke2009-02-242-115/+0
|
* Add async read_packetVolker Lendecke2009-02-242-0/+128
|
* Fix async writevVolker Lendecke2009-02-241-1/+1
|
* Remove async sendallVolker Lendecke2009-02-242-116/+0
|
* Add async writevVolker Lendecke2009-02-242-0/+109
|
* Convert async_connect to tevent_reqVolker Lendecke2009-02-242-32/+33
|
* async_sock: Use tevent_timeval instead of timeval functionsKai Blin2009-02-171-3/+4
|
* s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty2009-02-091-2/+2
| | | | Fallback on EAGAIN
* async_sock: Map ASYNC_REQ_TIMEOUT to ETIMEDOUT instead of ETIMEKai Blin2009-02-091-1/+5
| | | | Also, fall back to EIO if ETIMEDOUT is not present
* async_sock: Use unix errnos instead of NTSTATUSKai Blin2009-02-092-30/+99
| | | | | 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.
* Next step disentangling async_req from NTSTATUSVolker Lendecke2009-02-024-62/+86
| | | | Now I need to document this :-)
* Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke2009-02-016-80/+158
|
* async_sock: Move to top levelKai Blin2009-01-283-1/+755
|
* async_req: Fix the S4 buildKai Blin2009-01-272-20/+28
|