Reading/writing from named pipes under mono/Linux

2019-05-14 15:50发布

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...

1条回答
Fickle 薄情
2楼-- · 2019-05-14 16:03

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.

查看更多
登录 后发表回答