]> git.sur5r.net Git - openldap/blob - servers/slapd/back-sock/back-sock.h
7340d93ba53af4ae6daeb666559d8fe70e43b98d
[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 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
17 #ifndef SLAPD_SOCK_H
18 #define SLAPD_SOCK_H
19
20 #include "proto-sock.h"
21
22 LDAP_BEGIN_DECL
23
24 struct sockinfo {
25         const char      *si_sockpath;
26         int             si_extensions;
27 };
28
29 #define SOCK_EXT_BINDDN 1
30 #define SOCK_EXT_PEERNAME       2
31 #define SOCK_EXT_SSF            4
32
33 extern FILE *opensock LDAP_P((
34         const char *sockpath));
35
36 extern void sock_print_suffixes LDAP_P((
37         FILE *fp,
38         BackendDB *bd));
39
40 extern void sock_print_conn LDAP_P((
41         FILE *fp,
42         Connection *conn,
43         struct sockinfo *si));
44
45 extern int sock_read_and_send_results LDAP_P((
46         Operation *op,
47         SlapReply *rs,
48         FILE *fp));
49
50 LDAP_END_DECL
51
52 #endif