Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2002 12:00:58 -0800
From:      Justin C.Walker <justin@mac.com>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Routing Socket and New Addresses
Message-ID:  <94CFAED8-1360-11D6-B323-00306544D642@mac.com>
In-Reply-To: <20020128020135.B48767-100000@starbug.ugh.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?94CFAED8-1360-11D6-B323-00306544D642>