pike.git / lib / modules / Protocols.pmod / LDAP.pmod / protocol.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:1:   #pike __REAL_VERSION__      // LDAP client protocol implementation for Pike.   // - // $Id: protocol.pike,v 1.7 2001/09/14 08:38:02 hop Exp $ + // $Id: protocol.pike,v 1.8 2002/07/22 16:15:40 bill Exp $   //   // Honza Petrous, hop@unibase.cz   //   // ----------------------------------------------------------------------   //   // History:   //   // v1.9 1999-02-19 created separate file   // - improved checking of readed bytes in 'readmsg'   // v1.9.1.1
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:48:    object ldapfd; // helper fd       int seterr(int errno) {    // Sets ldap_err* variables and returns errno       //ldap_rem_errstr = errstr;    ldap_errno = errno;    return(errno);    }    +  //! +  //! Returns error number of last transaction. +  //! +  //! @seealso +  //! @[LDAP.protocol.error_string]    int error_number() { return(ldap_errno); }    -  +  //! +  //! Returns error description of search result. +  //! +  //! @seealso +  //! @[LDAP.protocol.error_number]    string error_string() { return(ldap_errlist[ldap_errno]); }       array error() { return(({error_number(), error_string()})); }          static void read_answer() {    // ----------------------    // Reads LDAP PDU (with defined msgid) from the server       int msglen = 0, ix, ofs;