summaryrefslogtreecommitdiff
path: root/source3/rpc_client/rpc_transport_sock.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-15s3:rpc_client: implement rpc_transport_sock_init() on top of ↵Stefan Metzmacher1-231/+13
rpc_transport_tstream_init() metze
2010-09-20s3-build: only include async headers where needed.Günther Deschner1-0/+1
Guenther
2010-03-29s3:rpc_client: remove more unused codeStefan Metzmacher1-37/+0
metze
2010-03-29s3:rpc_client: add set_timeout hook to rpc_cli_transportStefan Metzmacher1-0/+20
metze
2010-03-29s3:rpc_client: add rpccli_is_connected()Stefan Metzmacher1-11/+23
metze
2010-02-19First part of fix for bug #7159 - client rpc_transport doesn't cope with bad ↵Jeremy Allison1-0/+12
server data returns. Ensure that subreq is *always* talloc_free'd in the _done function, as it has an event timeout attached. If the read requests look longer than the cli->timeout, then the timeout fn is called with already freed data. Jeremy.
2010-01-06s3: Fix infinite loop in NCACN_IP_TCP asa there is no timeout. Assume ↵Bo Yang1-0/+53
lsa_pipe_tcp is ok but network is down, then send request is ok, but select() on writeable fds loops forever since there is no response. Signed-off-by: Bo Yang <boyang@samba.org>
2009-05-18Fix broken pipe handlingVolker Lendecke1-2/+2
Metze is right: If we have *any* error at the socket level, we just can not continue. Also, apply some defensive programming: With this async stuff someone else might already have closed the socket.
2009-05-19s3: tevent_req_poll() loops forever when pipe is brokenBo Yang1-1/+20
Signed-off-by: Bo Yang <boyang@samba.org>
2009-03-24Convert rpc_cli_transport->write to tevent_reqVolker Lendecke1-21/+20
2009-03-24Convert rpc_cli_transport->read to tevent_reqVolker Lendecke1-21/+20
2009-03-02Make struct tevent_req opaqueSimo Sorce1-8/+6
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-02-25Convert rpc_sock_write to use tevent_req base async_sendVolker Lendecke1-7/+46
2009-02-25Convert rpc_sock_read to use tevent_req base async_readVolker Lendecke1-10/+47
2009-01-22Add the socket rpc client transportVolker Lendecke1-0/+116