Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading/writing from named pipes under mono/Linux

I would like to read/write from a named pipe/FIFo queue under Linux. I have tried the standard classes StreamWriter and other classes from System.IO, but it fails because it is using seek. Has anyone ever written/read from a named pipe using Mono?. I am managing to read and write - but not the same time...

like image 472
weismat Avatar asked Dec 06 '25 06:12

weismat


1 Answers

You'll need to open separate readers and writers; for some reason, Mono treats FIFOs as if they are seekable (it's a bug), even though they aren't.

like image 191
Don Werve Avatar answered Dec 08 '25 19:12

Don Werve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!