2 Unix SMB/CIFS implementation.
4 server side dcerpc defines
6 Copyright (C) Andrew Tridgell 2003
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 enum endpoint_type {ENDPOINT_SMB, ENDPOINT_TCP};
26 /* a description of a single dcerpc endpoint */
27 struct dcesrv_endpoint {
28 enum endpoint_type type;
36 /* the state associated with a dcerpc server connection */
40 /* the endpoint that was opened */
41 struct dcesrv_endpoint endpoint;
43 /* endpoint operations provided by the endpoint server */
44 const struct dcesrv_endpoint_ops *ops;
46 /* private data for the endpoint server */
51 struct dcesrv_endpoint_ops {
52 /* the query function is used to ask an endpoint server if it
53 handles a particular endpoint */
54 BOOL (*query)(const struct dcesrv_endpoint *);
56 /* connect() is called when a connection is made to an endpoint */
57 NTSTATUS (*connect)(struct dcesrv_state *);
59 /* disconnect() is called when the endpoint is disconnected */
60 void (*disconnect)(struct dcesrv_state *);
64 /* server-wide context information for the dcerpc server */
65 struct dcesrv_context {
67 /* the list of endpoints servers that have registered */
69 struct dce_endpoint *next, *prev;
70 const struct dcesrv_endpoint_ops *endpoint_ops;