读/下单从命名管道写入/ Linux的 [英] Reading/writing from named pipes under mono/Linux

查看:118
本文介绍了读/下单从命名管道写入/ Linux的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Linux下的命名管道/ FIFO队列读/写。
我试图从System.IO标准类的StreamWriter和其他类,但它,因为它是使用求失败。
有没有人读/写的使用单声道命名管道?
我管理读写 - 但不是在同一时间...

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

推荐答案

您需要打开独立的读者和作家;出于某种原因,单把FIFO的,如果他们是可搜索(这是一个bug),即使他们不是。

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.

这篇关于读/下单从命名管道写入/ Linux的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆