dns: Use new DNS debugclass in DNS server
[kai/samba.git] / source3 / rpc_server / rpc_sock_helper.h
1 /*
2  *  Unix SMB/CIFS implementation.
3  *
4  *  RPC Socket Helper
5  *
6  *  Copyright (c) 2011      Andreas Schneider <asn@samba.org>
7  *
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 3 of the License, or
11  *  (at your option) any later version.
12  *
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.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
20  */
21
22
23 #ifndef _RPC_SOCK_HELPER_H_
24 #define _RPC_SOCK_HELPER_H_
25
26 NTSTATUS rpc_create_tcpip_sockets(const struct ndr_interface_table *iface,
27                                   struct dcerpc_binding_vector *bvec,
28                                   uint16_t port,
29                                   int *listen_fd,
30                                   int *listen_fd_size);
31
32 NTSTATUS rpc_setup_tcpip_sockets(struct tevent_context *ev_ctx,
33                                  struct messaging_context *msg_ctx,
34                                  const struct ndr_interface_table *iface,
35                                  struct dcerpc_binding_vector *bvec,
36                                  uint16_t port);
37
38 #endif /* _RPC_SOCK_HELPER_H_ */
39
40 /* vim: set ts=8 sw=8 noet cindent syntax=c.doxygen: */