1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00
Samuel Cabrero cdaf06abad s3:rpc_server: Unify RPC client disconnect and termination functions
These functions are used by endpoint mapper to delete the endpoints
when a NCALRPC connection from an external daemon is lost and by
preforked childs to accept the next client as soon as the current
connection terminates. We can use the same function for both purposes.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2019-07-22 16:49:15 +00:00

39 lines
1.2 KiB
C

/*
* Unix SMB/CIFS implementation.
*
* Endpoint server for the epmapper pipe
*
* Copyright (C) 2010-2011 Andreas Schneider <asn@samba.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SRV_EPMAPPER_H_
#define _SRV_EPMAPPER_H_
/**
* @brief Cleanup memory and other stuff.
*/
void srv_epmapper_cleanup(void);
/**
* @brief Cleanup function used to delete endpoints when a ncalrpc connection
* from an external daemon is lost
*/
void srv_epmapper_delete_endpoints(struct pipes_struct *p, void *private_data);
#endif /*_SRV_EPMAPPER_H_ */
/* vim: set ts=8 sw=8 noet cindent syntax=c.doxygen: */