]> git.sur5r.net Git - openldap/blob - servers/slapd/back-sock/back-sock.h
3e3d77eaaa9480ae2c32eb06608cc39308cf90af
[openldap] / servers / slapd / back-sock / back-sock.h
1 /* sock.h - socket backend header file */
2 /* $OpenLDAP$ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4  *
5  * Copyright 2007-2013 The OpenLDAP Foundation.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted only as authorized by the OpenLDAP
10  * Public License.
11  *
12  * A copy of this license is available in the file LICENSE in the
13  * top-level directory of the distribution or, alternatively, at
14  * <http://www.OpenLDAP.org/license.html>.
15  */
16 /* ACKNOWLEDGEMENTS:
17  * This work was initially developed by Brian Candler for inclusion
18  * in OpenLDAP Software.
19  */
20
21 #ifndef SLAPD_SOCK_H
22 #define SLAPD_SOCK_H
23
24 #include "proto-sock.h"
25
26 LDAP_BEGIN_DECL
27
28 struct sockinfo {
29         const char      *si_sockpath;
30         slap_mask_t     si_extensions;
31         slap_mask_t     si_ops;         /* overlay: operations to act on */
32         slap_mask_t     si_resps;       /* overlay: responses to forward */
33 };
34
35 #define SOCK_EXT_BINDDN 1
36 #define SOCK_EXT_PEERNAME       2
37 #define SOCK_EXT_SSF            4
38 #define SOCK_EXT_CONNID         8
39
40 extern FILE *opensock LDAP_P((
41         const char *sockpath));
42
43 extern void sock_print_suffixes LDAP_P((
44         FILE *fp,
45         BackendDB *bd));
46
47 extern void sock_print_conn LDAP_P((
48         FILE *fp,
49         Connection *conn,
50         struct sockinfo *si));
51
52 extern int sock_read_and_send_results LDAP_P((
53         Operation *op,
54         SlapReply *rs,
55         FILE *fp));
56
57 LDAP_END_DECL
58
59 #endif