Lines Matching refs:sbytes
137 int sbytes; member
428 size_t sbytes; in tftp_send_first() local
480 sbytes = 4 + strlen(filename) + strlen(mode); in tftp_send_first()
492 result = tftp_option_add(state, &sbytes, in tftp_send_first()
493 (char *)state->spacket.data + sbytes, in tftp_send_first()
496 result = tftp_option_add(state, &sbytes, in tftp_send_first()
497 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
502 result = tftp_option_add(state, &sbytes, in tftp_send_first()
503 (char *)state->spacket.data + sbytes, in tftp_send_first()
506 result = tftp_option_add(state, &sbytes, in tftp_send_first()
507 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
512 result = tftp_option_add(state, &sbytes, in tftp_send_first()
513 (char *)state->spacket.data + sbytes, in tftp_send_first()
516 result = tftp_option_add(state, &sbytes, in tftp_send_first()
517 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
529 (SEND_TYPE_ARG3)sbytes, 0, in tftp_send_first()
532 if(senddata != (ssize_t)sbytes) { in tftp_send_first()
582 ssize_t sbytes; in tftp_rx() local
613 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
617 if(sbytes < 0) { in tftp_rx()
638 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
642 if(sbytes < 0) { in tftp_rx()
664 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
668 if(sbytes<0) { in tftp_rx()
705 ssize_t sbytes; in tftp_tx() local
738 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
739 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
743 if(sbytes<0) { in tftp_tx()
763 if(state->block > 1 && state->sbytes < state->blksize) { in tftp_tx()
772 state->sbytes = 0; in tftp_tx()
775 result = Curl_fillreadbuffer(data, state->blksize - state->sbytes, &cb); in tftp_tx()
778 state->sbytes += (int)cb; in tftp_tx()
780 } while(state->sbytes < state->blksize && cb); in tftp_tx()
782 sbytes = sendto(state->sockfd, (void *) state->spacket.data, in tftp_tx()
783 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
787 if(sbytes<0) { in tftp_tx()
792 k->writebytecount += state->sbytes; in tftp_tx()
808 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
809 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
813 if(sbytes<0) { in tftp_tx()