From: Erik A. <er...@aa...> - 2001-10-23 21:19:07
|
On 23 October 2001, Sam Steingold <sd...@gn...> wrote: > > * Honorable Erik Arneson <er...@aa...> writes: > > On 23 October 2001, Sam Steingold <sd...@gn...> wrote: > > > does (open :direction :io) work? > > > > That works just fine for FIFOs, but I'm not sure that will work very > > well for UNIX domain sockets. Normally in C you use similar socket > > calls with a socket type of PF_UNIX instead of PF_INET. > > 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. > 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? :) -- # Erik Arneson <er...@aa...> AARG Net <http://www.aarg.net/> # # GPG Key ID: 1024D/43AD6AB8 <http://erik.arneson.org/> # # "Resistance to tyrants is obedience to God!" - Thomas Jefferson # |