On Mon, 2005-01-24 17:18:03 -0200, r_zaca <[EMAIL PROTECTED]>
wrote in message <[EMAIL PROTECTED]>:
Content-Description: Mail message body
>   Hello everybody, 
> 
>   Does anyone know what a "unix domain socket" is, and how it differ from an 
> "Internet domain socket"? 

Internet domain sockets work with IP addresses and port numbers. A unix
socket merely is a special file on a local file system, a so calles
"fifo". It's created with the "mkfifo" library call or userspace
command.

After you've created a fifo, which is displayed with a 'p' as the
file-type at "ls -l" output, you can open/close/read/write it.

>   If you know a nice site or documentation about this subject, please tell 
> me. 

There's not much to tell about it. It's created once locally, then you
can access it. Keep in mind that it's a purely local thing. You cannot
export it by any means (I've seen people putting it on a shared NFS
filesystem....). The data passed through the fifo is kept within the
operating system's kernel; it's never ever written somewhere onto stable
storage.

MfG, JBG

-- 
Jan-Benedict Glaw       [EMAIL PROTECTED]    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier BÃrger" | im Internet! |   im Irak!   O O 
O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature

Reply via email to