Lines Matching defs:msgid

46 static int check_response_queue( LDAP *ld, int msgid, int all,
48 static int ldap_abandoned( LDAP *ld, int msgid );
49 static int ldap_mark_abandoned( LDAP *ld, int msgid );
50 static int wait4msg( LDAP *ld, int msgid, int all, int unlock_permitted,
52 static int read1msg( LDAP *ld, int msgid, int all, Sockbuf *sb, LDAPConn *lc,
64 static int unlink_msg( LDAP *ld, int msgid, int all );
69 * ldap server. If msgid is -1, any message will be accepted, otherwise
70 * ldap_result will wait for a response with msgid. If all is 0 the
71 * first message with id msgid will be accepted, otherwise, ldap_result
72 * will wait for all responses with id msgid and then return a pointer to
79 * ldap_result( s, msgid, all, timeout, result )
85 int msgid,
101 rc = nsldapi_result_nolock(ld, msgid, all, 1, timeout, result);
110 nsldapi_result_nolock( LDAP *ld, int msgid, int all, int unlock_permitted,
116 "nsldapi_result_nolock (msgid=%d, all=%d)\n", msgid, all, 0 );
130 if ( check_response_queue( ld, msgid, all, 1, result ) != 0 ) {
134 rc = wait4msg( ld, msgid, all, unlock_permitted, timeout,
153 * criteria in the msgid and all parameters. msgid == LDAP_RES_ANY matches
162 check_response_queue( LDAP *ld, int msgid, int all, int do_abandon_check,
169 "=> check_response_queue (msgid=%d, all=%d)\n", msgid, all, 0 );
191 if ( msgid == LDAP_RES_ANY || lm->lm_msgid == msgid ) {
264 "<= check_response_queue returning msgid %d type %d\n",
271 wait4msg( LDAP *ld, int msgid, int all, int unlock_permitted,
298 rc = (ld->ld_cache_result)( ld, msgid, all, timeout, result );
311 * if we are looking for a specific msgid, check to see if it is
314 if ( msgid != LDAP_RES_ANY && msgid != LDAP_RES_UNSOLICITED ) {
316 if (( lr = nsldapi_find_request_by_msgid( ld, msgid ))
322 return( -1 ); /* could not find request for msgid */
361 rc = read1msg( ld, msgid, all, lc->lconn_sb,
412 rc = read1msg( ld, msgid, all,
453 check_response_queue( ld, msgid, all, 0, result ) != 0 ) {
493 read1msg( LDAP *ld, int msgid, int all, Sockbuf *sb, LDAPConn *lc,
563 "no request for response with msgid %ld (tossing)\n",
574 LDAPDebug( LDAP_DEBUG_TRACE, "got %s msgid %ld, original id %d\n",
718 if ( msgid == LDAP_RES_ANY || id == msgid ) {
739 * the msgid is already there, it must be part of an existing
764 new->lm_msgid, new->lm_msgtype, msgid );
773 new->lm_msgid, new->lm_msgtype, msgid );
971 "check_for_refs: new result: msgid %d, res_errno %d, ",
1168 ldap_msgdelete( LDAP *ld, int msgid )
1182 if ( lm->lm_msgid == msgid )
1210 * return 1 if message msgid is waiting to be abandoned, 0 otherwise
1213 ldap_abandoned( LDAP *ld, int msgid )
1225 if ( ld->ld_abandoned[i] == msgid )
1237 ldap_mark_abandoned( LDAP *ld, int msgid )
1249 if ( ld->ld_abandoned[i] == msgid )
1297 nsldapi_post_result( LDAP *ld, int msgid, LDAPMessage *result )
1302 "nsldapi_post_result(ld=0x%x, msgid=%d, result=0x%x)\n",
1303 ld, msgid, result );
1305 if( msgid == LDAP_RES_ANY ) {
1328 if( lp->lp_msgid == msgid )
1348 newlp->lp_msgid = msgid;
1360 lp->lp_msgid = msgid;
1396 unlink_msg( LDAP *ld, int msgid, int all )
1407 if ( lm->lm_msgid == msgid )