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.15 2004/10/14 00:20:48 bill Exp $ + // $Id: protocol.pike,v 1.16 2005/03/11 16:49:57 mast 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   // 1999-03-21 - changed FILE to File (unbuffered)   // - some inactive code   //   // v1.10 1999-03-28 - rewritten methods 'readmsg' & 'writemsg'   // to new method 'xchgmsg'   // - added core for async operation   //      #if constant(Standards.ASN1.Types)    -  + import Protocols.LDAP; +    #include "ldap_globals.h"      #include "ldap_errors.h"       // private variables    int next_id = 1; // message id counter    int ldap_version = LDAP_DEFAULT_VERSION; // actually used protocol vers. -  string ldap_rem_errstr = LDAP_SUCCESS_STR; // last remote error description +  string ldap_rem_errstr = ldap_errlist[LDAP_SUCCESS]; // last remote error description    int ldap_errno = LDAP_SUCCESS; // last error code       /*private*/ string readbuf=""; // read buffer    private int ok; // read buffer status    /*private*/ string writebuf=""; // write buffer   // private written; // count of written chars    private function con_ok, con_fail; // async callback functions    object conthread; // thread connection    array extra_args; // not used, yet   // /*private*/ int errno;