上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页
本文来自:http://zq2007.blog.hexun.com/8625800_d.html一些成员函数改变对象,一些成员函数不改变对象。例如: int Point::GetY(){return yVal;} 这个函数被调用时,不改变Point对象,而下面的函数改变Point对象: void Point:: SetPt (int x, int y){xVal=x;yVal=y;} 为了使成员函数的意义更加清楚,我们可在不改变对象的成员函数的函数原型中加上const说明: class Point { public:int GetX() const;int GetY() const;void Read More
posted @ 2011-04-12 09:45 BloodAndBone Views(6575) Comments(0) Diggs(1) Edit
#ifndef __HAVE_ARCH_STRNICMP/*** strnicmp - Case insensitive, length-limited string comparison* @s1: One string* @s2: The other string* @len: the maximum number of characters to compare*/int strnicmp(const char *s1, const char *s2, size_t len){/* Yes, Virginia, it had better be unsigned */unsigned c Read More
posted @ 2011-03-21 18:57 BloodAndBone Views(1436) Comments(1) Diggs(1) Edit
slapd配置文件详述Slapd运行配置主要是通过slapd.conf文件。通常,该文件安装在/usr/local/etc/openldap目录下。也可以使用slapd或者slurpd的命令行参数指定其他的配置文件。本章描述了配置文件的格式,并且描述了常用的配置指令。 1. 配置文件格式 slapd.conf文件由3个部分的配置信息组成:全局的,特定后台的,和特定数据库的。全局信息首先被指明,后面是特定后台的信息,在后面是特定数据库实例的信息。全局信息可以被特定后台和特定数据库的信息覆盖。特定后台的信息可以被特定数据库的信息覆盖。空白行和以“#”开始的注释行被忽略。如果一行以空格开始,它被认为 Read More
posted @ 2011-02-28 16:52 BloodAndBone Views(2729) Comments(0) Diggs(0) Edit
OPENLDAP概述1.LDAP简介OpenLDAP是一个开源的LDAP实现,这个套件包括:•slapd - 独立运行的LDAP服务器端程序•slurpd - 更新复制的守护进程•libraries 实现LDAP协议的接口库•管理工具和客户端简单说来,LDAP是一个得到关于人或者资源的集中、静态数据的快速方式。 LDAP是一个用来发布目录信息到许多不同资源的协议。通常它都作为一个集中的地址本使用,不 过根据组织者的需要,它可以做得更加强大。LDAP其实是一电话簿,类似于我 们所使用诸如NIS(Network Information Service)、DNS (Domain Name Servi Read More
posted @ 2011-02-28 16:49 BloodAndBone Views(1231) Comments(0) Diggs(0) Edit
OPENLDAP安装配置方法1. 平台及相关软件OS:CentOS5.3 gcc:4.1.2 BerkeleyDB:4.8.24 openldap:2.4.19 2. 安装步骤1) 安装BerkeleyDB数据库 [root@localhost BerkeleyDB]# tar -zxvf db-4.8.26.gz[root@localhost BerkeleyDB]# cd db-4.8.26[root@localhost db-4.8.24]# cd build_unix/[root@localhost db-4.8.24]# ../dist/configure[root@localhos Read More
posted @ 2011-02-28 16:47 BloodAndBone Views(3758) Comments(0) Diggs(0) Edit
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页