summaryrefslogtreecommitdiff
path: root/lib/tsocket/tsocket.c
AgeCommit message (Collapse)AuthorFilesLines
2025-07-17lib/tsocket: optimize tdgram_recvfrom_done() into tdgram_recvfrom_send()Stefan Metzmacher1-0/+16
For callers using tdgram_bsd_optimize_recvfrom() it is every useful to know it data was already waiting in the socket. In that case the result from tdgram_bsd_recvfrom_send() would already report tevent_req_is_in_progress() as false. But the result of tdgram_recvfrom_send() available to the caller would see tevent_req_is_in_progress() reporting true. With this change also the result of tdgram_recvfrom_send() would report tevent_req_is_in_progress() as false, which will be useful for callers, which would otherwise set a timeout on the request. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-06-18lib/tsocket: add tstream_monitor_send/recv infrastructureStefan Metzmacher1-1/+164
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2025-06-18lib/tsocket: allow only one tstream_disconnect_send/recvStefan Metzmacher1-0/+40
And don't allow readv and writev anymore. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2025-06-18lib/tsocket: make use of tevent_req_set_cleanup_fn() instead of ↵Stefan Metzmacher1-16/+28
talloc_set_destructor() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2024-08-06tsocket: Use iov_buflenVolker Lendecke1-23/+11
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2010-07-11tsocket: Fix some unreachable codeVolker Lendecke1-2/+1
2009-12-15tsocket: Fixed typo in LGPL header.Andreas Schneider1-1/+1
2009-06-27Properly free a downlevel readv request. Metze, please checkVolker Lendecke1-0/+1
2009-06-09It seems that IRIX doesn't have IOV_MAXAndrew Tridgell1-0/+4
2009-05-01tsocket: add tstream_context infrastructure similar to tdgram_contextStefan Metzmacher1-0/+375
metze
2009-05-01tsocket: move tsocket_simple_int_recv() to tsocket.cStefan Metzmacher1-1/+28
metze
2009-05-01tsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.cStefan Metzmacher1-130/+0
metze
2009-05-01tsocket: tdgram move input checks to the common code as there're needed for ↵Stefan Metzmacher1-2/+68
all backends We need to make sure that we free the sendto and recvfrom requests before the tdgram_context metze
2009-05-01tsocket: return EINVAL when tdgram_sendto_send() is used with len == 0Stefan Metzmacher1-0/+5
metze
2009-05-01tsocket: remove tsocket_context related stuffStefan Metzmacher1-145/+0
It will be replaced by tdgram_context and tstream_context. metze
2009-04-02tsocket: remove DGRAM support from tsocket_contextStefan Metzmacher1-15/+0
metze
2009-04-02tsocket: add tdgram_sendto_queue_send/recv()Stefan Metzmacher1-0/+130
metze
2009-04-02tsocket: split out a smaller tdgram_context abstractionStefan Metzmacher1-0/+264
The idea is to have a tdgram and a tstream abstraction which only provide tevent_req based io functions. metze
2009-03-19lib/tsocket: add generic socket abstraction layerStefan Metzmacher1-0/+231
This will replace source4/lib/socket/. metze