From 9593101ec118dd242bf25fabf3e17c58269e632c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 25 Sep 2005 21:01:56 +0000 Subject: r10491: First step towards wbinfo -t: This issues a name request for the primary domain and gets the DC's name via a mailslot call. Metze, I renamed wbsrv_queue_reply to wbsrv_send_reply in accordance with irpc_send_reply. Having _queue_ here and _send_ there is a bit confusing. And as everything is async anyway, the semantics should not be too much of a problem. Volker (This used to be commit 4637964b19c6e9f7d201b287e2d409d029fced01) --- source4/winbind/wb_server.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'source4/winbind/wb_server.h') diff --git a/source4/winbind/wb_server.h b/source4/winbind/wb_server.h index 2c93c02323..0c00394f7d 100644 --- a/source4/winbind/wb_server.h +++ b/source4/winbind/wb_server.h @@ -91,16 +91,17 @@ struct wbsrv_connection { NOTE about async replies: if the backend wants to reply later: - - it should set the WBSRV_CALL_FLAGS_REPLY_ASYNC flag, and may set a talloc_destructor - on the this structure or on the private_data (if it's a talloc child of this structure), - so that wbsrv_terminate_connection called by another call clean up the whole connection - correct. - - When the backend is ready to reply it should call wbsrv_queue_reply(call), - wbsrv_queue_reply implies talloc_free(call), so the backend should use talloc_reference(call), - if it needs it later. - - If wbsrv_queue_reply doesn't return NT_STATUS_OK, the backend function should call, - wbsrv_terminate_connection(call->wbconn, nt_errstr(status)); - return; + + - it should set the WBSRV_CALL_FLAGS_REPLY_ASYNC flag, and may set a + talloc_destructor on the this structure or on the private_data (if it's a + talloc child of this structure), so that wbsrv_terminate_connection + called by another call clean up the whole connection correct. + - When the backend is ready to reply it should call wbsrv_send_reply(call), + wbsrv_send_reply implies talloc_free(call), so the backend should use + talloc_reference(call), if it needs it later. + - If wbsrv_send_reply doesn't return NT_STATUS_OK, the backend function + should call, wbsrv_terminate_connection(call->wbconn, nt_errstr(status)); + return; */ struct wbsrv_call { -- cgit