summaryrefslogtreecommitdiffstats
path: root/lib/tsocket
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes for tsocket API documentation.Brad Hards2010-02-221-14/+14
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* tsocket/bsd: fix comment in tdgram_bsd_recvfrom_handler()Stefan Metzmacher2010-02-181-2/+4
| | | | metze
* Fix commit d07cd37b993d3c9beded20323174633b806196b5Jeremy Allison2010-02-171-1/+4
| | | | | | | | | | | | | Which was: tsocket/bsd: fix bug #7115 FreeBSD includes the UDP header in FIONREAD Metze, this has to have been wrong - you are throwing away the talloc_realloc pointer returned. Also no error checking. Please review. Thank goodness for gcc warnings :-). Jeremy.
* tsocket/bsd: fix bug #7115 FreeBSD includes the UDP header in FIONREADStefan Metzmacher2010-02-171-4/+6
| | | | metze
* tsocket/bsd: set IPV6_V6ONLY on AF_INET6 socketsStefan Metzmacher2010-02-171-0/+36
| | | | | | | | Some system already have this as default. It's easier to behave the same way on all systems and handle ipv6 and ipv4 sockets separate. metze
* tsocket/bsd: fix bug #7140 autodetect ipv4 and ipv6 based on the remote ↵Stefan Metzmacher2010-02-171-2/+53
| | | | | | address if the local address is any metze
* tsocket/bsd: fix bug #7140 use calculated sa_socklen for bind() in ↵Stefan Metzmacher2010-02-171-1/+1
| | | | | | | | | tstream_bsd_connect_send() This is needed because, we can't use sizeof(sockaddr_storage) for AF_UNIX sockets. Also some platforms require exact values for AF_INET and AF_INET6. metze
* tsocket/bsd: fix do_bind logic for AF_INETStefan Metzmacher2010-02-171-2/+2
| | | | | | We want the explicit bind() when we don't use the any address. metze
* tsocket: Fix the description of tstream_writev_queue_send/recvKai Blin2010-01-281-6/+6
|
* tsocket: Fix description for tstream_readv_pdu_queue_send/recvKai Blin2010-01-281-7/+6
|
* tsocket: Added doxygen config file.Andreas Schneider2010-01-111-0/+1538
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tsocket: Added complete doxygen documentation.Andreas Schneider2010-01-112-63/+834
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* tsocket: only copy the specific part of sockaddr*Stefan Metzmacher2009-12-241-0/+5
| | | | | | | This makes sure we fill the unspefic bytes with 0 and have zero termination for sockaddr_un. metze
* tsocket: allow AF_UNIX sockaddrs smaller than sizeof(sockaddr_un)Stefan Metzmacher2009-12-241-4/+5
| | | | | | | This is needed as getpeername() truncates the length to 2 if the peer socket has no name. metze
* tsocket: Fixed tsocket_guide.txt asciidoc syntax.Andreas Schneider2009-12-151-148/+161
|
* tsocket: Fixed documentation for tsocket_address_bsd_sockaddr().Andreas Schneider2009-12-151-6/+5
|
* tsocket: Fixed typo in LGPL header.Andreas Schneider2009-12-155-5/+5
|
* tsocket: add tsocket_address_bsd_sockaddr() and ↵Stefan Metzmacher2009-12-153-5/+87
| | | | | | tsocket_address_bsd_from_sockaddr() metze
* tsocket: rewrite tsocket_guide.txt to reflect the current APIsStefan Metzmacher2009-11-031-467/+413
| | | | metze
* tsocket_bsd: return -1 and set errno to ENAMETOOLONG if the unix path is too ↵Stefan Metzmacher2009-11-031-1/+6
| | | | | | long metze
* tsocket: remove prototype of non-existing tsocket_address_inet_set_broadcast()Stefan Metzmacher2009-11-031-2/+0
| | | | metze
* tsocket: rename sa_len => sa_socklen, because sa_len is a macro on some ↵Stefan Metzmacher2009-07-161-21/+21
| | | | | | platforms metze
* tsocket/bsd: also ask for TEVENT_FD_READ when we want to write into a stream ↵Stefan Metzmacher2009-06-291-2/+9
| | | | | | | | socket Otherwise we would not notice a broken connection. metze
* tsocket/bsd: more correctly check if the cached tevent_fd is still validStefan Metzmacher2009-06-291-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | I some cases the pointer value of tevent_context is the same again, if we do something like: ev1 = tevent_context_init(); ... fde = tevent_add_fd(ev1, fd, TEVENT_FD_READ...); ... talloc_free(ev1); ... ev2 = tevent_context_init(); if (ev1 == ev2) { /* this can happen! */ } if (tevent_fd_get_flags(fde) == 0) { /* this is always true */ } But the "talloc_free(ev1)" will set fde->event_ctx to NULL and tevent_fd_get_flags() will always return 0. metze
* Properly free a downlevel readv request. Metze, please checkVolker Lendecke2009-06-271-0/+1
|
* It seems that IRIX doesn't have IOV_MAXAndrew Tridgell2009-06-091-0/+4
|
* tsocket: allow empty vectors at the end for tstream_writev()/readv()Stefan Metzmacher2009-05-221-0/+26
| | | | metze
* Set errno=ENOMEM if tevent_add_fd failsVolker Lendecke2009-05-191-0/+4
| | | | | | | tevent_add_fd does not properly set that. At least in epoll and select this is the only error condition. Metze, please check!
* Simplify the logic of tsocket_bsd_pendingVolker Lendecke2009-05-191-24/+26
| | | | | | Remove two indentation levels by returning early on error. Metze, please check!
* Attempt to the build on NetBSD5 and a few othersVolker Lendecke2009-05-011-0/+3
|
* tsocket: add tstream_readv_pdu_queue_send/recv()Stefan Metzmacher2009-05-012-0/+132
| | | | metze
* tsocket: add tstream_writev_queue_send/recv()Stefan Metzmacher2009-05-012-0/+132
| | | | metze
* tsocket: add tstream_readv_pdu_send/recv()Stefan Metzmacher2009-05-012-1/+178
| | | | metze
* tsocket: add tstream implementation for bsd sockets (inet and unix)Stefan Metzmacher2009-05-012-0/+943
| | | | metze
* tsocket: add tstream_context infrastructure similar to tdgram_contextStefan Metzmacher2009-05-013-0/+445
| | | | metze
* tsocket: rename tdgram_unix_dgram_socket() => tdgram_unix_socket()Stefan Metzmacher2009-05-012-12/+12
| | | | metze
* tsocket: move tsocket_simple_int_recv() to tsocket.cStefan Metzmacher2009-05-012-31/+28
| | | | metze
* tsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.cStefan Metzmacher2009-05-012-130/+131
| | | | metze
* tsocket: tdgram move input checks to the common code as there're needed for ↵Stefan Metzmacher2009-05-012-24/+69
| | | | | | | | | all backends We need to make sure that we free the sendto and recvfrom requests before the tdgram_context metze
* tsocket: for unix domain sockets we need to use sizeof(struct sockaddr_un)Stefan Metzmacher2009-05-011-2/+22
| | | | | | sizeof(struct sockaddr_storage) generates EINVAL. metze
* tsocket: return EINVAL when tdgram_sendto_send() is used with len == 0Stefan Metzmacher2009-05-011-0/+5
| | | | metze
* tsocket: fix dependeciesStefan Metzmacher2009-05-011-1/+2
| | | | metze
* tsocket: remove tsocket_context related stuffStefan Metzmacher2009-05-019-1807/+17
| | | | | | It will be replaced by tdgram_context and tstream_context. metze
* tsocket: fix the build without ipv6 supportStefan Metzmacher2009-04-161-0/+2
| | | | metze
* tsocket: reduce size of dummy variableStefan Metzmacher2009-04-061-1/+1
| | | | metze
* tsocket: use the correct 'ret' variable for tdgram_disconnect_send/recv()Stefan Metzmacher2009-04-061-8/+2
| | | | metze
* tsocket: remove DGRAM support from tsocket_contextStefan Metzmacher2009-04-027-564/+0
| | | | metze
* tsocket: optimize tdgram_bsd a lotStefan Metzmacher2009-04-021-27/+54
| | | | | | | | | | | | | | | | | | | | | The desire is to do as less syscalls during the tdgram_sendto_send/recv() and tdgram_recvfrom_send/recv() operations. 1. we first try the sendto()/recvfrom() syscall and only use a fd event if we got EAGAIN. 2. we cache the fd event and only change it's flags if really needed. For the highload case we do almost no epoll_ctl() and epoll_wait()/select() syscalls anymore. This speeds up the LDAP-BENCH-CLDAP test by more than 20%. (With a modified version of this test which let the server skip any ldb calls and just return success I'm getting about 8000 requests per second, while I'm getting just about 6000 requests per second without optimization) metze
* tsocket: add tdgram_sendto_queue_send/recv()Stefan Metzmacher2009-04-022-0/+143
| | | | metze
* tsocket: split out a smaller tdgram_context abstractionStefan Metzmacher2009-04-024-0/+1192
| | | | | | | The idea is to have a tdgram and a tstream abstraction which only provide tevent_req based io functions. metze