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.14 2004/06/18 13:05:50 grubba Exp $ + // $Id: protocol.pike,v 1.15 2004/10/14 00:20:48 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:20:   // to new method 'xchgmsg'   // - added core for async operation   //      #if constant(Standards.ASN1.Types)      #include "ldap_globals.h"      #include "ldap_errors.h"    -  inherit Stdio.File : ldap; -  +     // 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    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;    int connected = 0; -  +  object low_fd = Stdio.File(); // helper fd    object ldapfd; // helper fd       int seterr(int errno) {    // Sets ldap_err* variables and returns errno       //ldap_rem_errstr = errstr;    ldap_errno = errno;    return errno;    }