Lines Matching refs:sbytes
138 int sbytes; member
429 size_t sbytes; in tftp_send_first() local
479 sbytes = 4 + strlen(filename) + strlen(mode); in tftp_send_first()
489 result = tftp_option_add(state, &sbytes, in tftp_send_first()
490 (char *)state->spacket.data + sbytes, in tftp_send_first()
493 result = tftp_option_add(state, &sbytes, in tftp_send_first()
494 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
499 result = tftp_option_add(state, &sbytes, in tftp_send_first()
500 (char *)state->spacket.data + sbytes, in tftp_send_first()
503 result = tftp_option_add(state, &sbytes, in tftp_send_first()
504 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
509 result = tftp_option_add(state, &sbytes, in tftp_send_first()
510 (char *)state->spacket.data + sbytes, in tftp_send_first()
513 result = tftp_option_add(state, &sbytes, in tftp_send_first()
514 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
526 (SEND_TYPE_ARG3)sbytes, 0, in tftp_send_first()
529 if(senddata != (ssize_t)sbytes) { in tftp_send_first()
579 ssize_t sbytes; in tftp_rx() local
610 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
614 if(sbytes < 0) { in tftp_rx()
635 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
639 if(sbytes < 0) { in tftp_rx()
661 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
665 if(sbytes < 0) { in tftp_rx()
702 ssize_t sbytes; in tftp_tx() local
737 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
738 4 + (SEND_TYPE_ARG3)state->sbytes, SEND_4TH_ARG, in tftp_tx()
742 if(sbytes < 0) { in tftp_tx()
762 if(state->block > 1 && state->sbytes < state->blksize) { in tftp_tx()
771 state->sbytes = 0; in tftp_tx()
774 result = Curl_client_read(data, bufptr, state->blksize - state->sbytes, 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 + (SEND_TYPE_ARG3)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 + (SEND_TYPE_ARG3)state->sbytes, SEND_4TH_ARG, in tftp_tx()
813 if(sbytes < 0) { in tftp_tx()