Lines Matching refs:state

141 static void state(struct Curl_easy *data, sshstate nowstate)  in state()  function
213 if(sshc->state != nowstate) { in state()
215 (void *)sshc, names[sshc->state], names[nowstate]); in state()
219 sshc->state = nowstate; in state()
423 state(data, SSH_INIT); in wssh_connect()
425 state(data, SSH_SFTP_INIT); in wssh_connect()
452 switch(sshc->state) { in wssh_statemach_act()
454 state(data, SSH_S_STARTUP); in wssh_statemach_act()
472 state(data, SSH_STOP); in wssh_statemach_act()
476 state(data, SSH_STOP); in wssh_statemach_act()
497 state(data, SSH_SFTP_REALPATH); in wssh_statemach_act()
522 state(data, SSH_STOP); in wssh_statemach_act()
532 state(data, SSH_STOP); in wssh_statemach_act()
539 state(data, SSH_SFTP_QUOTE); in wssh_statemach_act()
542 state(data, SSH_SFTP_GETINFO); in wssh_statemach_act()
547 state(data, SSH_SFTP_FILETIME); in wssh_statemach_act()
550 state(data, SSH_SFTP_TRANS_INIT); in wssh_statemach_act()
554 if(data->state.upload) in wssh_statemach_act()
555 state(data, SSH_SFTP_UPLOAD_INIT); in wssh_statemach_act()
558 state(data, SSH_SFTP_READDIR_INIT); in wssh_statemach_act()
560 state(data, SSH_SFTP_DOWNLOAD_INIT); in wssh_statemach_act()
566 if(data->state.resume_from) { in wssh_statemach_act()
568 if(data->state.resume_from < 0) { in wssh_statemach_act()
575 data->state.resume_from = 0; in wssh_statemach_act()
583 data->state.resume_from = size; in wssh_statemach_act()
591 else if(data->state.resume_from > 0) in wssh_statemach_act()
623 state(data, SSH_SFTP_DOWNLOAD_STAT); in wssh_statemach_act()
627 if(data->state.resume_from > 0) { in wssh_statemach_act()
633 data->state.resume_from, SEEK_SET); in wssh_statemach_act()
648 (data->state.resume_from - passed > in wssh_statemach_act()
650 sizeof(scratch) : curlx_sotouz(data->state.resume_from - passed); in wssh_statemach_act()
654 actuallyread = data->state.fread_func(scratch, 1, in wssh_statemach_act()
656 data->state.in); in wssh_statemach_act()
666 } while(passed < data->state.resume_from); in wssh_statemach_act()
670 if(data->state.infilesize > 0) { in wssh_statemach_act()
671 data->state.infilesize -= data->state.resume_from; in wssh_statemach_act()
672 data->req.size = data->state.infilesize; in wssh_statemach_act()
673 Curl_pgrsSetUploadSize(data, data->state.infilesize); in wssh_statemach_act()
676 sshc->offset += data->state.resume_from; in wssh_statemach_act()
678 if(data->state.infilesize > 0) { in wssh_statemach_act()
679 data->req.size = data->state.infilesize; in wssh_statemach_act()
680 Curl_pgrsSetUploadSize(data, data->state.infilesize); in wssh_statemach_act()
689 state(data, SSH_SFTP_CLOSE); in wssh_statemach_act()
700 data->state.select_bits = CURL_CSELECT_OUT; in wssh_statemach_act()
707 state(data, SSH_STOP); in wssh_statemach_act()
730 state(data, SSH_SFTP_DOWNLOAD_STAT); in wssh_statemach_act()
775 if(data->state.use_range || data->state.resume_from) { in wssh_statemach_act()
785 state(data, SSH_STOP); in wssh_statemach_act()
796 data->state.select_bits = CURL_CSELECT_IN; in wssh_statemach_act()
801 state(data, SSH_SFTP_CLOSE); in wssh_statemach_act()
805 state(data, SSH_STOP); in wssh_statemach_act()
826 state(data, SSH_STOP); in wssh_statemach_act()
836 state(data, SSH_STOP); in wssh_statemach_act()
839 state(data, SSH_SFTP_READDIR); in wssh_statemach_act()
867 state(data, SSH_SFTP_CLOSE); in wssh_statemach_act()
881 state(data, SSH_STOP); in wssh_statemach_act()
891 state(data, SSH_STOP); in wssh_statemach_act()
896 } while(!rc && (sshc->state != SSH_STOP)); in wssh_statemach_act()
910 *done = (sshc->state == SSH_STOP) ? TRUE : FALSE; in wssh_multi_statemach()
944 state(data, SSH_SFTP_QUOTE_INIT); in wsftp_perform()
994 while((sshc->state != SSH_STOP) && !result) { in wssh_block_statemach()
1098 state(data, SSH_SFTP_CLOSE); in wsftp_done()
1125 state(data, SSH_SFTP_SHUTDOWN); in wsftp_disconnect()