Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What are the advantages of using a named rather than an anonymous pipe?


Here? I guess that VLC displays whatever name you give the named pipe instead of just a file descriptor.

In general, another advantage is that in scripts giving a pipe a name can sometimes aid in clarity, supposedly.


Technically, they're the same kind of pipe as the anonymous ones you create in a shell.

But you can give them a name yourself, and you can create one, then later have a program listening to it, and then later send data to it, from different programs if you want.

You can also create them, send some data to them, and then later start a program to read that out, but you're likely to run into buffering issues with that.

Also, don't forget to remove one when you don't use it anymore.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: