On Sat, Jan 11, 2003 at 08:27:40PM +0200, Serguei I. Ivantsov wrote: > Hi! > > How TCP guarantees data arrival on non-blocking sockets : > for example, I create stream socket, turn it to non-blocking mode > when I call send() it immediately returns OK, but how to sure that data have > been successfully received? With mere socket writing (send, write, whatever) you can't. (independent of socket blocking mode.) If you have some sort of additional protocol flowing over, then you can be sure when you receive an acknowledgement. TCP gives you automated retransmits, order preservation, etc, but it can't guarantee that the data you send blindly won't become discarded in some intermediate stage when connection with remote end becomes disrupted somehow. > -- > Regards, > Serguei I. Ivantsov /Matti Aarnio - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html