Lines Matching refs:state
139 static void state(struct Curl_easy *data, sshstate nowstate) in state() function
211 if(sshc->state != nowstate) { in state()
213 (void *)sshc, names[sshc->state], names[nowstate]); in state()
217 sshc->state = nowstate; in state()
424 state(data, SSH_INIT); in wssh_connect()
426 state(data, SSH_SFTP_INIT); in wssh_connect()
453 switch(sshc->state) { in wssh_statemach_act()
455 state(data, SSH_S_STARTUP); in wssh_statemach_act()
473 state(data, SSH_STOP); in wssh_statemach_act()
477 state(data, SSH_STOP); in wssh_statemach_act()
498 state(data, SSH_SFTP_REALPATH); in wssh_statemach_act()
523 state(data, SSH_STOP); in wssh_statemach_act()
533 state(data, SSH_STOP); in wssh_statemach_act()
540 state(data, SSH_SFTP_QUOTE); in wssh_statemach_act()
543 state(data, SSH_SFTP_GETINFO); in wssh_statemach_act()
548 state(data, SSH_SFTP_FILETIME); in wssh_statemach_act()
551 state(data, SSH_SFTP_TRANS_INIT); in wssh_statemach_act()
555 if(data->state.upload) in wssh_statemach_act()
556 state(data, SSH_SFTP_UPLOAD_INIT); in wssh_statemach_act()
559 state(data, SSH_SFTP_READDIR_INIT); in wssh_statemach_act()
561 state(data, SSH_SFTP_DOWNLOAD_INIT); in wssh_statemach_act()
567 if(data->state.resume_from) { in wssh_statemach_act()
569 if(data->state.resume_from < 0) { in wssh_statemach_act()
576 data->state.resume_from = 0; in wssh_statemach_act()
584 data->state.resume_from = size; in wssh_statemach_act()
592 else if(data->state.resume_from > 0) in wssh_statemach_act()
624 state(data, SSH_SFTP_DOWNLOAD_STAT); in wssh_statemach_act()
628 if(data->state.resume_from > 0) { in wssh_statemach_act()
634 data->state.resume_from, SEEK_SET); in wssh_statemach_act()
649 (data->state.resume_from - passed > in wssh_statemach_act()
651 sizeof(scratch) : curlx_sotouz(data->state.resume_from - passed); in wssh_statemach_act()
655 actuallyread = data->state.fread_func(scratch, 1, in wssh_statemach_act()
657 data->state.in); in wssh_statemach_act()
667 } while(passed < data->state.resume_from); in wssh_statemach_act()
671 if(data->state.infilesize > 0) { in wssh_statemach_act()
672 data->state.infilesize -= data->state.resume_from; in wssh_statemach_act()
673 data->req.size = data->state.infilesize; in wssh_statemach_act()
674 Curl_pgrsSetUploadSize(data, data->state.infilesize); in wssh_statemach_act()
677 sshc->offset += data->state.resume_from; in wssh_statemach_act()
679 if(data->state.infilesize > 0) { in wssh_statemach_act()
680 data->req.size = data->state.infilesize; in wssh_statemach_act()
681 Curl_pgrsSetUploadSize(data, data->state.infilesize); in wssh_statemach_act()
690 state(data, SSH_SFTP_CLOSE); in wssh_statemach_act()
701 data->state.select_bits = CURL_CSELECT_OUT; in wssh_statemach_act()
708 state(data, SSH_STOP); in wssh_statemach_act()
731 state(data, SSH_SFTP_DOWNLOAD_STAT); in wssh_statemach_act()
776 if(data->state.use_range || data->state.resume_from) { in wssh_statemach_act()
786 state(data, SSH_STOP); in wssh_statemach_act()
797 data->state.select_bits = CURL_CSELECT_IN; in wssh_statemach_act()
802 state(data, SSH_SFTP_CLOSE); in wssh_statemach_act()
806 state(data, SSH_STOP); in wssh_statemach_act()
827 state(data, SSH_STOP); in wssh_statemach_act()
837 state(data, SSH_STOP); in wssh_statemach_act()
840 state(data, SSH_SFTP_READDIR); in wssh_statemach_act()
868 state(data, SSH_SFTP_CLOSE); in wssh_statemach_act()
882 state(data, SSH_STOP); in wssh_statemach_act()
892 state(data, SSH_STOP); in wssh_statemach_act()
897 } while(!rc && (sshc->state != SSH_STOP)); in wssh_statemach_act()
911 *done = (sshc->state == SSH_STOP); in wssh_multi_statemach()
945 state(data, SSH_SFTP_QUOTE_INIT); in wsftp_perform()
995 while((sshc->state != SSH_STOP) && !result) { in wssh_block_statemach()
1099 state(data, SSH_SFTP_CLOSE); in wsftp_done()
1126 state(data, SSH_SFTP_SHUTDOWN); in wsftp_disconnect()