Lines Matching refs:sbytes

140   int             sbytes;  member
450 size_t sbytes; in tftp_send_first() local
502 sbytes = 4 + strlen(filename) + strlen(mode); in tftp_send_first()
514 sbytes += tftp_option_add(state, sbytes, in tftp_send_first()
515 (char *)state->spacket.data + sbytes, in tftp_send_first()
517 sbytes += tftp_option_add(state, sbytes, in tftp_send_first()
518 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
521 sbytes += tftp_option_add(state, sbytes, in tftp_send_first()
522 (char *)state->spacket.data + sbytes, in tftp_send_first()
524 sbytes += tftp_option_add(state, sbytes, in tftp_send_first()
525 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
529 sbytes += tftp_option_add(state, sbytes, in tftp_send_first()
530 (char *)state->spacket.data + sbytes, in tftp_send_first()
532 sbytes += tftp_option_add(state, sbytes, in tftp_send_first()
533 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
539 (SEND_TYPE_ARG3)sbytes, 0, in tftp_send_first()
542 if(senddata != (ssize_t)sbytes) { in tftp_send_first()
591 ssize_t sbytes; in tftp_rx() local
622 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
626 if(sbytes < 0) { in tftp_rx()
647 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
651 if(sbytes < 0) { in tftp_rx()
673 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
677 if(sbytes<0) { in tftp_rx()
714 ssize_t sbytes; in tftp_tx() local
747 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
748 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
752 if(sbytes<0) { in tftp_tx()
772 if(state->block > 1 && state->sbytes < state->blksize) { in tftp_tx()
781 state->sbytes = 0; in tftp_tx()
784 result = Curl_fillreadbuffer(state->conn, state->blksize - state->sbytes, in tftp_tx()
788 state->sbytes += (int)cb; in tftp_tx()
790 } while(state->sbytes < state->blksize && cb != 0); in tftp_tx()
792 sbytes = sendto(state->sockfd, (void *) state->spacket.data, in tftp_tx()
793 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
797 if(sbytes<0) { in tftp_tx()
802 k->writebytecount += state->sbytes; in tftp_tx()
818 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
819 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
823 if(sbytes<0) { in tftp_tx()