Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!apple!voder!zok!mark From: mark@zok.UUCP (Mark W. Snitily) Newsgroups: comp.unix.i386 Subject: streams & sockets (Re: Creating a socket with ISC's libinet.a) Message-ID: <404@zok.UUCP> Date: 16 Jan 90 17:47:05 GMT References: <403@zok.UUCP> <1990Jan16.011859.5080@mks.com> Reply-To: mark@zok.UUCP (Mark W. Snitily) Organization: The distant planet Zok Lines: 31 In article <1990Jan16.011859.5080@mks.com> eric@mks.com (Eric Gisin) writes: >In article <403@zok.UUCP>, mark@zok.UUCP (Mark W. Snitily) writes: >> Has anyone tried to create a socket using the libinet.a that comes >> with ISC's X11 development package? >> ... > >The -linet routines emulate BSD sockets by using the native stream >devices and system calls in System V. ... > >Your basic misconception is that /dev/.X11-unix/0 is a UNIX domain socket. >The socket emulation does NOT implemement AF_UNIX. >/dev/.X11-unix/0 is one end of a Stream pipe. ... > >I figured all this out while trying to decide what it would >take to build X11.4 on 386/IX. ... Thanks. Building X11R4 was exactly what I was doing too. Ended up building X11R4 with debug info (libX11.a was about 11MB !) and traced the "could not open display" message to the socket() call in XConnDis.c. (Used -DSTREAMCONN and -DUNIXCONN in the build.) I'm rather comfortable with sockets but know very little about streams. What references (books/journals/source code) would people out there recommend for learning about streams for the first time? -- Mark Mark W. Snitily Consulting Services: 894 Brookgrove Lane Graphics, Operating Systems, Compilers Cupertino, CA 95014 (408) 252-0456 mark@zok.uucp