*BSD News Article 73685


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!lll-winken.llnl.gov!ames!elroy.jpl.nasa.gov!decwrl!pa.dec.com!depot.mro.dec.com!enomem.lkg.dec.com!usenet
From: thomas@netrix.lkg.dec.com (Matt Thomas)
Newsgroups: comp.os.linux.networking,comp.unix.bsd.netbsd.misc,comp.unix.bsd.freebsd.misc
Subject: Re: TCP latency
Date: 14 Jul 1996 19:30:02 GMT
Organization: Digital Equipment Corporation
Lines: 19
Message-ID: <4sbhrq$msh@enomem.lkg.dec.com>
References: <4paedl$4bm@engnews2.eng.sun.com>
  <4rlf6i$c5f@linux.cs.helsinki.fi> <31DEA3A3.41C67EA6@dyson.iquest.net>
  <Du681x.2Gy@kroete2.freinet.de> <31DFEB02.41C67EA6@dyson.iquest.net>
  <4rpdtn$30b@symiserver2.symantec.com> <x7ohlq78wt.fsf@oberon.di.fc.ul.pt>
  <Pine.LNX.3.91.960709020017.19115I-100000@reflections.mindspring.com>
  <4s12la$pm8@enomem.lkg.dec.com>
  <m24tnf9f69.fsf@frob.mlm.extern.lrz-muenchen.de>
NNTP-Posting-Host: netrix.lkg.dec.com
X-Newsreader: knews 0.9.3
In-Reply-To: <m24tnf9f69.fsf@frob.mlm.extern.lrz-muenchen.de>
To: Andi Kleen <andi@mlm.extern.lrz-muenchen.de>
Xref: euryale.cc.adfa.oz.au comp.os.linux.networking:45183 comp.unix.bsd.netbsd.misc:4039 comp.unix.bsd.freebsd.misc:23546

In article <m24tnf9f69.fsf@frob.mlm.extern.lrz-muenchen.de>,
	Andi Kleen <andi@mlm.extern.lrz-muenchen.de> writes:

>I think a mmap() interface to sockets would be more elegant (and you could
>do exactly the same thing)

I can't see how mmap() would map to a socket.  Unlike a file, you can't
directly address portions of a communication stream.  What would lseek
do?  Sockets have semantics that are very sequential in nature.  mmap
is not a good fit.

How would you use mmap on a pipe?

-- 
Matt Thomas                          Internet:   thomas@lkg.dec.com
U*X Networking                       WWW URL:    http://ftp.dec.com/%7Ethomas/
Digital Equipment Corporation        Disclaimer: This message reflects my
Littleton, MA                                    own warped views, etc.