Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / openldap / dist / servers / slapd / back-sock / back-sock.h
blob16d6ba72ab34ca0a8fa0ea71876544c8637930a1
1 /* sock.h - socket backend header file */
2 /* $OpenLDAP: pkg/ldap/servers/slapd/back-sock/back-sock.h,v 1.4.2.1 2008/02/09 00:46:09 quanah Exp $ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2007-2008 The OpenLDAP Foundation.
6 * All rights reserved.
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.
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>.
16 /* ACKNOWLEDGEMENTS:
17 * This work was initially developed by Brian Candler for inclusion
18 * in OpenLDAP Software.
21 #ifndef SLAPD_SOCK_H
22 #define SLAPD_SOCK_H
24 #include "proto-sock.h"
26 LDAP_BEGIN_DECL
28 struct sockinfo {
29 const char *si_sockpath;
30 slap_mask_t si_extensions;
33 #define SOCK_EXT_BINDDN 1
34 #define SOCK_EXT_PEERNAME 2
35 #define SOCK_EXT_SSF 4
37 extern FILE *opensock LDAP_P((
38 const char *sockpath));
40 extern void sock_print_suffixes LDAP_P((
41 FILE *fp,
42 BackendDB *bd));
44 extern void sock_print_conn LDAP_P((
45 FILE *fp,
46 Connection *conn,
47 struct sockinfo *si));
49 extern int sock_read_and_send_results LDAP_P((
50 Operation *op,
51 SlapReply *rs,
52 FILE *fp));
54 LDAP_END_DECL
56 #endif