From owner-freebsd-hackers Fri Nov 15 09:30:38 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA01355 for hackers-outgoing; Fri, 15 Nov 1996 09:30:38 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA01340 for ; Fri, 15 Nov 1996 09:30:15 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id KAA26280; Fri, 15 Nov 1996 10:17:03 -0700 From: Terry Lambert Message-Id: <199611151717.KAA26280@phaeton.artisoft.com> Subject: Re: Sockets question... To: fenner@parc.xerox.com (Bill Fenner) Date: Fri, 15 Nov 1996 10:17:03 -0700 (MST) Cc: scrappy@ki.net, jdp@polstra.com, hackers@FreeBSD.org In-Reply-To: <96Nov14.180824pst.177557@crevenia.parc.xerox.com> from "Bill Fenner" at Nov 14, 96 06:08:23 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > TCP is not a record-oriented protocol, and will buffer up (or re-packetize > however it wants) any data that you give it. Therefore, you have to be > prepared to read whatever size it wants to give you, and your application > has to be able to put it back together into what it wants. Your data will > all get there, eventually. Then why do we have all of the silly frag reconstruction code in the packet receive path, if having the code makes no difference? > my part anyway. What you need to do is write all your data to the network, > and not count on it arriving in the same sized chunks as you wrote it. > But it will all arrive. ?!? This is (supposedly) what happens *for you* during packet reassembly on the receiving end. Packets, as they arrive, are reassembled, in order, into the user buffer, so the user buffer on the receiver ends up looking thesame as the user buffer on the sender. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.