Lines Matching refs:upload_size
557 size_t upload_size) in smb_send() argument
573 smbc->upload_size = upload_size; in smb_send()
778 curl_off_t upload_size = data->req.size - data->req.bytecount; in smb_send_write() local
781 if(upload_size >= MAX_PAYLOAD_SIZE - 1) /* There is one byte of padding */ in smb_send_write()
782 upload_size = MAX_PAYLOAD_SIZE - 1; in smb_send_write()
790 msg->data_length = smb_swap16((unsigned short) upload_size); in smb_send_write()
792 msg->byte_count = smb_swap16((unsigned short) (upload_size + 1)); in smb_send_write()
795 sizeof(*msg) - sizeof(msg->h) + (size_t) upload_size); in smb_send_write()
797 return smb_send(data, sizeof(*msg), (size_t) upload_size); in smb_send_write()
808 if(!smbc->send_size && smbc->upload_size) { in smb_send_and_recv()
809 size_t nread = smbc->upload_size > (size_t)MAX_MESSAGE_SIZE ? in smb_send_and_recv()
810 (size_t)MAX_MESSAGE_SIZE : smbc->upload_size; in smb_send_and_recv()
819 smbc->upload_size -= nread; in smb_send_and_recv()
832 if(smbc->send_size || smbc->upload_size) in smb_send_and_recv()