在 mono/Linux 下从命名管道读取/写入
我想从 Linux 下的命名管道/FIFo 队列中读取/写入。 我已经尝试了标准类 StreamWriter 和 System.IO 中的其他类,但它失败了,因为它正在使用查找。 有人曾经使用 Mono 从命名管道中写入/读取过吗? 我正在设法阅读和写作 - 但不是同时进行......
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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要打开单独的读者和作者; 由于某种原因,Mono 将 FIFO 视为可查找(这是一个错误),即使它们不是可查找的。
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.