From: Sam S. <sd...@gn...> - 2001-10-23 21:36:01
|
> * In message <153...@si...> > * On the subject of "Re: [clisp-list] How to open a UNIX socket with clisp?" > * Sent on Tue, 23 Oct 2001 14:18:33 -0700 > * Honorable Erik Arneson <er...@aa...> writes: > > On 23 October 2001, Sam Steingold <sd...@gn...> wrote: > > > > open can be made to work with them, right? > > I don't think open works with any sort of socket. PF_UNIX sockets are > treated very much like PF_INET sockets wherever possible. In other > words, you have to bind them and use the normal libc socket interface. I meant CL OPEN, not UNIX fopen(2). > > how do I create a unix socket from the shell? > > (mknod(1) on solaris does not mention this). > > how do I determine that a file "/foo/bar" is actually a unix socket? > > (fstat(3) and mknod(2) on solaris do not mention unix sockets). > > You can't create a UNIX socket from the shell, as far as I know. You > can't interface with them normally via 'cat' and such, either, like > you can with a FIFO. They're quite a pain in the butt, huh? :) ouch... at any rate, unless someone tells me how do I know whether "/foo/bar" is a socket, there is nothing I could do. -- Sam Steingold (http://www.podval.org/~sds) Keep Jerusalem united! <http://www.onejerusalem.org/Petition.asp> Read, think and remember! <http://www.iris.org.il> <http://www.memri.org/> If it has syntax, it isn't user friendly. |