在 mono/Linux 下从命名管道读取/写入

发布于 2024-07-15 20:05:54 字数 153 浏览 3 评论 0原文

我想从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜唯美灬不弃 2024-07-22 20:05:54

您需要打开单独的读者和作者; 由于某种原因,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文