Lines Matching refs:len
111 size_t len, off;
126 len = slp_get_length(reply);
129 if (slp_get_sht(reply, len, &off, &protoErrCode) != SLP_OK)
137 if (slp_get_sht(reply, len, &off, &urlCount) != SLP_OK)
151 if (slp_get_sht(reply, len, &off, &sLifetime) != SLP_OK)
156 if (slp_get_string(reply, len, &off, &pcSrvURL) != SLP_OK)
161 if (slp_get_byte(reply, len, &off, &nURLAuthBlocks) != SLP_OK)
175 len - off,
332 size_t len, msgLen, tmplen;
388 len = 4;
391 msg->iov[3].iov_base = msg->msg + len;
392 tmplen = len;
394 err = slp_add_string(msg->msg, msgLen, type, &len);
395 msg->iov[3].iov_len = len - tmplen;
401 msg->iov[6].iov_base = msg->msg + len;
402 tmplen = len;
404 err = slp_add_string(msg->msg, msgLen, filter, &len);
408 err = slp_add_string(msg->msg, msgLen, spi, &len);
410 msg->iov[6].iov_len = len - tmplen;
435 size_t len, msgLen;
450 len = 0;
451 err = slp_add_header(lang, *msg, msgLen, SRVRQST, msgLen, &len);
453 len += 2; /* empty PR list */
456 err = slp_add_string(*msg, msgLen, type, &len);
458 err = slp_add_string(*msg, msgLen, scopes, &len);
460 err = slp_add_string(*msg, msgLen, filter, &len);
463 err = slp_add_string(*msg, msgLen, "", &len);