Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 1999 17:39:15 -0700
From:      "Justin C. Walker" <justin@apple.com>
To:        Alfred Perlstein <bright@rush.net>
Cc:        Zhihui Zhang <zzhang@cs.binghamton.edu>, Chuck Youse <cyouse@cybersites.com>, freebsd-hackers@freebsd.org
Subject:   Re: Sockets and SYSTEM V message queue
Message-ID:  <199905110039.RAA00634@rhapture.apple.com>
In-Reply-To: <Pine.GSO.3.96.990510142747.29300B-100000@sol.cs.binghamton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Alfred Perlstein <bright@rush.net>
> Date: 1999-05-10 12:27:53 -0700
> To: Zhihui Zhang <zzhang@cs.binghamton.edu>
> Subject: Re: Sockets and SYSTEM V message queue
> Cc: Chuck Youse <cyouse@cybersites.com>, freebsd-hackers@FreeBSD.ORG 
> In-reply-to:
> <Pine.GSO.3.96.990510142747.29300B-100000@sol.cs.binghamton.edu>
> Delivered-to: freebsd-hackers@freebsd.org
> X-Loop: FreeBSD.ORG
>
> On Mon, 10 May 1999, Zhihui Zhang wrote:
>
> >
> > On Mon, 10 May 1999, Chuck Youse wrote:
> >
> > >
> > > That's why you can create sockets in the UNIX domain (AF_UNIX,  
later
> > > renamed AF_LOCAL).  When you bind a UNIX domain socket, it's  
bound to a
> > > name in the filesystem.
> >
> > Thanks for the reply. So a socket must be bound to something to  
be used.
> > You mention a name in the filesystem, does the file exist before  
binding
> > or not? It seems to be a temporary file.
>
> You would benifit greatly by purchaing "Unix Netowrk Programming Vol 1" 
> by Stevens.
    Agreed; V. 2 is an excellent "code walkthrough" of the BSD 4.3  
implementation.

> several things:
>
> you can communicate locally via a socket, the kernel detects this
> and uses the loopback device, i'm quite sure that it will use a
> fast impelementation of a local pipe
   No.  The kernel will note that the destination is local, and use  
the loopback interface, but you will still use the IP and TCP stacks.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics       |
Manager, CoreOS Networking            |   Men are from Earth.
Apple Computer, Inc.                  |   Women are from Earth.
2 Infinite Loop                       |       Deal with it.
Cupertino, CA 95014                   |
*-------------------------------------*-------------------------------*


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?199905110039.RAA00634>