Lines Matching refs:connection
225 if (svc->connection == NULL) in _default_destination()
323 return (httpWrite(svc->connection, buffer, length)); in ipp_request_write()
333 while ((rc = httpRead(svc->connection, p, i)) != i) { in ipp_request_read()
364 httpClearFields(svc->connection); in ipp_send_initial_request_block()
366 httpSetField(svc->connection, HTTP_FIELD_TRANSFER_ENCODING, in ipp_send_initial_request_block()
370 httpSetField(svc->connection, HTTP_FIELD_CONTENT_LENGTH, in ipp_send_initial_request_block()
373 httpSetField(svc->connection, HTTP_FIELD_CONTENT_TYPE, in ipp_send_initial_request_block()
375 httpSetField(svc->connection, HTTP_FIELD_AUTHORIZATION, in ipp_send_initial_request_block()
376 svc->connection->authstring); in ipp_send_initial_request_block()
379 httpFlush(svc->connection); in ipp_send_initial_request_block()
386 status = httpPost(svc->connection, svc->post); in ipp_send_initial_request_block()
390 if (httpCheck(svc->connection) != 0) { in ipp_send_initial_request_block()
391 status = httpUpdate(svc->connection); in ipp_send_initial_request_block()
409 if (httpCheck(svc->connection) != 0) { in ipp_send_initial_request_block()
410 status = httpUpdate(svc->connection); in ipp_send_initial_request_block()
425 if ((svc == NULL) || (svc->connection == NULL) || (svc->name == NULL)) in setAuthString()
428 http = svc->connection; in setAuthString()
585 status = httpUpdate(svc->connection); in ipp_send_request_with_file()
588 httpFlush(svc->connection); in ipp_send_request_with_file()
589 if ((svc->connection->authstring[0] == '\0') && in ipp_send_request_with_file()
591 httpReconnect(svc->connection); in ipp_send_request_with_file()
599 httpFlush(svc->connection); in ipp_send_request_with_file()
600 httpReconnect(svc->connection); in ipp_send_request_with_file()
601 httpEncryption(svc->connection, HTTP_ENCRYPT_REQUIRED); in ipp_send_request_with_file()