• Home
  • Raw
  • Download

Lines Matching refs:sbytes

140   int             sbytes;  member
452 size_t sbytes; in tftp_send_first() local
504 sbytes = 4 + strlen(filename) + strlen(mode); in tftp_send_first()
516 result = tftp_option_add(state, &sbytes, in tftp_send_first()
517 (char *)state->spacket.data + sbytes, in tftp_send_first()
520 result = tftp_option_add(state, &sbytes, in tftp_send_first()
521 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
526 result = tftp_option_add(state, &sbytes, in tftp_send_first()
527 (char *)state->spacket.data + sbytes, in tftp_send_first()
530 result = tftp_option_add(state, &sbytes, in tftp_send_first()
531 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
536 result = tftp_option_add(state, &sbytes, in tftp_send_first()
537 (char *)state->spacket.data + sbytes, in tftp_send_first()
540 result = tftp_option_add(state, &sbytes, in tftp_send_first()
541 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
553 (SEND_TYPE_ARG3)sbytes, 0, in tftp_send_first()
556 if(senddata != (ssize_t)sbytes) { in tftp_send_first()
606 ssize_t sbytes; in tftp_rx() local
637 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
641 if(sbytes < 0) { in tftp_rx()
662 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
666 if(sbytes < 0) { in tftp_rx()
688 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
692 if(sbytes<0) { in tftp_rx()
729 ssize_t sbytes; in tftp_tx() local
762 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
763 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
767 if(sbytes<0) { in tftp_tx()
787 if(state->block > 1 && state->sbytes < state->blksize) { in tftp_tx()
796 state->sbytes = 0; in tftp_tx()
799 result = Curl_fillreadbuffer(state->conn, state->blksize - state->sbytes, in tftp_tx()
803 state->sbytes += (int)cb; in tftp_tx()
805 } while(state->sbytes < state->blksize && cb != 0); in tftp_tx()
807 sbytes = sendto(state->sockfd, (void *) state->spacket.data, in tftp_tx()
808 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
812 if(sbytes<0) { in tftp_tx()
817 k->writebytecount += state->sbytes; in tftp_tx()
833 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
834 4 + state->sbytes, SEND_4TH_ARG, in tftp_tx()
838 if(sbytes<0) { in tftp_tx()