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.11 2004/01/11 00:49:03 nilsson Exp $ + // $Id: protocol.pike,v 1.12 2004/04/14 20:21:16 nilsson 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.asn1_integer) + #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
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:304:    if (rv < 2) {    seterr (LDAP_SERVER_DOWN);    THROW(({"LDAP: connection closed by server.\n",backtrace()}));    return -ldap_errno;    }    DWRITE(sprintf("protocol.writemsg: write OK [%d bytes].\n",rv));    msgval = 0; msgid = 0;    return msgnum;    }    -  + #else + constant this_program_does_not_exist=1;   #endif