Back to index

openldap  2.4.31
back-sock.h
Go to the documentation of this file.
00001 /* sock.h - socket backend header file */
00002 /* $OpenLDAP$ */
00003 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00004  *
00005  * Copyright 2007-2012 The OpenLDAP Foundation.
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted only as authorized by the OpenLDAP
00010  * Public License.
00011  *
00012  * A copy of this license is available in the file LICENSE in the
00013  * top-level directory of the distribution or, alternatively, at
00014  * <http://www.OpenLDAP.org/license.html>.
00015  */
00016 /* ACKNOWLEDGEMENTS:
00017  * This work was initially developed by Brian Candler for inclusion
00018  * in OpenLDAP Software.
00019  */
00020 
00021 #ifndef SLAPD_SOCK_H
00022 #define SLAPD_SOCK_H
00023 
00024 #include "proto-sock.h"
00025 
00026 LDAP_BEGIN_DECL
00027 
00028 struct sockinfo {
00029        const char    *si_sockpath;
00030        slap_mask_t   si_extensions;
00031        slap_mask_t   si_ops;              /* overlay: operations to act on */
00032        slap_mask_t   si_resps;     /* overlay: responses to forward */
00033 };
00034 
00035 #define       SOCK_EXT_BINDDN      1
00036 #define       SOCK_EXT_PEERNAME    2
00037 #define       SOCK_EXT_SSF         4
00038 #define       SOCK_EXT_CONNID             8
00039 
00040 extern FILE *opensock LDAP_P((
00041        const char *sockpath));
00042 
00043 extern void sock_print_suffixes LDAP_P((
00044        FILE *fp,
00045        BackendDB *bd));
00046 
00047 extern void sock_print_conn LDAP_P((
00048        FILE *fp,
00049        Connection *conn,
00050        struct sockinfo *si));
00051 
00052 extern int sock_read_and_send_results LDAP_P((
00053        Operation *op,
00054        SlapReply *rs,
00055        FILE *fp));
00056 
00057 LDAP_END_DECL
00058 
00059 #endif