Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.unix.programmer > #1213

Re: Acknowledgement of sent bytes in non-blocking sockets

From Rainer Weikusat <rweikusat@mssgmbh.com>
Newsgroups comp.unix.programmer
Subject Re: Acknowledgement of sent bytes in non-blocking sockets
Date 2011-09-05 13:05 +0100
Message-ID <8762l7tcrw.fsf@sapphire.mobileactivedefense.com> (permalink)
References <j40cak$gnt$2@dont-email.me> <f7a505cd-00c0-428b-b617-08fb71a06ac1@u7g2000pro.googlegroups.com> <37b71a65-3bbb-4310-940f-ff67e753d9bd@t30g2000prm.googlegroups.com>

Show all headers | View raw


itt ium <ittium@gmail.com> writes:
> On Sep 5, 3:33 am, David Schwartz <dav...@webmaster.com> wrote:
>> On Sep 4, 10:25 am, ittium <itt...@gmail.com> wrote:
>>
>> > I have a small doubt. In case of non-blocking socket when send calls (on
>> > TCP sockets) returns, is it correct to assume that byte equal to return
>> > value of send call, have been sent and acknowledged or the bytes are
>> > only copied to send buffer and send returns.
>>
>> TCP doesn't provide application-level data acknowledgements. If you
>> need them, you need to implement them yourselves.
>
> This means, if TCP stack failed to send any packets (because of
> retransmission  attempt exhaust),  their is no way for application to
> know dropped bytes.

TCP provides an ordered bytestream and this implies that it has a
property the SCTP RFC calls 'head of line blocking': After the sending
TCP has transmitted as much data as will fit into the so-called
'window' of the receiver, no new data will be sent until old data has
been acknowledged. Also, retransmission timeouts are fatal errors and
an application will be informed about them. 

Back to comp.unix.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Acknowledgement of sent bytes in non-blocking sockets ittium <ittium@gmail.com> - 2011-09-04 22:55 +0530
  Re: Acknowledgement of sent bytes in non-blocking sockets Barry Margolin <barmar@alum.mit.edu> - 2011-09-04 14:07 -0400
  Re: Acknowledgement of sent bytes in non-blocking sockets David Schwartz <davids@webmaster.com> - 2011-09-04 15:33 -0700
    Re: Acknowledgement of sent bytes in non-blocking sockets itt ium <ittium@gmail.com> - 2011-09-05 01:59 -0700
      Re: Acknowledgement of sent bytes in non-blocking sockets Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-09-05 13:05 +0100
      Re: Acknowledgement of sent bytes in non-blocking sockets David Schwartz <davids@webmaster.com> - 2011-09-06 10:06 -0700
      Re: Acknowledgement of sent bytes in non-blocking sockets Nobody <nobody@nowhere.com> - 2011-09-07 02:49 +0100
      Re: Acknowledgement of sent bytes in non-blocking sockets Rick Jones <rick.jones2@hp.com> - 2011-09-07 18:28 +0000

csiph-web