r4728: split up server_services into:
[samba.git] / source4 / smbd / server.h
1 /* 
2    Unix SMB/CIFS implementation.
3
4    Copyright (C) Stefan (metze) Metzmacher      2004
5    
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10    
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #ifndef _SERVER_H
22 #define _SERVER_H
23
24 struct server_service;
25 struct event_context;
26
27 struct server_context {
28         struct {
29                 struct event_context *ctx;
30         } event;
31
32         struct {
33                 const struct model_ops *ops;
34         } model;
35
36         struct server_service *service_list;
37 };
38
39 /* size of listen() backlog in smbd */
40 #define SERVER_LISTEN_BACKLOG 10
41
42 /* the range of ports to try for dcerpc over tcp endpoints */
43 #define SERVER_TCP_LOW_PORT  1024
44 #define SERVER_TCP_HIGH_PORT 1300
45
46 /* the default idle time of a service */
47 #define SERVER_DEFAULT_IDLE_TIME 300
48
49 #endif /* _SERVER_H */