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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:147:    if(ix > 0)    s = ldapfd->read(ix);    if (!s || (sizeof(s) < ix)) {    seterr (LDAP_CONNECT_ERROR,    !s ? strerror (ldapfd->errno()) : "Connection closed");    ERROR ("LDAP read error: %s\n", ldap_rem_errstr);    //return -ldap_errno;    return;    }    readbuf += s; -  //DWRITE(sprintf("protocol.read_answer: %s\n", .ldap_privates.ldap_der_decode(readbuf)->debug_string())); +  //DWRITE(sprintf("protocol.read_answer: %O\n", .ldap_privates.ldap_der_decode(readbuf)));    DWRITE("protocol.read_answer: ok=1.\n");    ok = 1;       last_io_time = time();       if(con_ok)    con_ok(this, @extra_args);    }       protected int is_whole_pdu() {
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/protocol.pike:294:    DWRITE(sprintf("protocol.readmsg: reading %d bytes.\n", msglen));    s = ldapfd->read(msglen);    if (!s | (sizeof(s) < msglen)) {    seterr (LDAP_SERVER_DOWN,    !s ? strerror (ldapfd->errno()) : "Connection closed");    ERROR ("LDAP read error: %s\n", ldap_rem_errstr);    return -ldap_errno;    }    retv += s;    last_io_time = time(); -  DWRITE(sprintf("protocol.readmsg: %s\n", .ldap_privates.ldap_der_decode(retv)->debug_string())); +  DWRITE(sprintf("protocol.readmsg: %O\n", .ldap_privates.ldap_der_decode(retv)));    return retv;    }       int writemsg(object msgop) {    // Make LDAP PDU envelope for 'msgop' and send it       object msgval;    object msgid;    int rv = 0, msgnum;