[英]Reading/writing from named pipes under mono/Linux
I would like to read/write from a named pipe/FIFo queue under Linux. 我想从Linux下的命名管道/ FIFo队列读/写。 I have tried the standard classes StreamWriter and other classes from System.IO, but it fails because it is using seek.
我已经尝试过标准类StreamWriter和System.IO中的其他类,但它失败了因为它正在使用seek。 Has anyone ever written/read from a named pipe using Mono?.
有没有人使用Mono从命名管道写入/读取? I am managing to read and write - but not the same time...
我正在设法阅读和写作 - 但不是同一时间......
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.
出于某种原因,Mono将FIFO视为可以寻找(这是一个bug),即使它们不是。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.