From owner-freebsd-hackers Sun Jan 27 12: 1: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 9611A37B400 for ; Sun, 27 Jan 2002 12:01:04 -0800 (PST) Received: from grinch ([12.234.224.67]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020127200059.DHCM3578.rwcrmhc52.attbi.com@grinch> for ; Sun, 27 Jan 2002 20:00:59 +0000 Date: Sun, 27 Jan 2002 12:00:58 -0800 Subject: Re: Routing Socket and New Addresses Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v475) From: Justin C.Walker To: freebsd-hackers@FreeBSD.ORG Content-Transfer-Encoding: 7bit In-Reply-To: <20020128020135.B48767-100000@starbug.ugh.net.au> Message-Id: <94CFAED8-1360-11D6-B323-00306544D642@mac.com> X-Mailer: Apple Mail (2.475) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday, January 27, 2002, at 08:03 AM, Andrew wrote: > > > On Sun, 27 Jan 2002, Andrew wrote: > >> but it seems that if I don't read the packet with one read call then >> the >> packet is lost. Is this correct behaviour? I guess if the buffer is >> small > > Well it seems that if you dont get the entire packet in one read it is > lost forever. It also seems that no matter how many bytes you try and > read > you only ever get one packet (though I haven't confirmed that for sure). > > If this is how it really works then perhaps it should be documented > somewhere. It is and it is :-}. At least, Stevens discusses it in "Unix Network Programming", v1, 2e (sec. 20.3). Different systems, alas, treat this case differently. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | Men are from Earth. | Women are from Earth. | Deal with it. *--------------------------------------*-------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message