namedpipeserverstream

    2热度

    1回答

    我有一个运行在一个线程一个NamedPipeServerStream并等待连接上它像这样的应用程序: NamedPipeServerStream pipeServerTemp = new NamedPipeServerStream(PIP_NAME, PipeDirection.InOut, 254); pipeServerTemp.WaitForConnection(); 该应用程序总是在

    1热度

    1回答

    我试图将C#.Net项目转换为Mono。 NamedPipeServerStream & NamedPipeClientStream类不支持Mono并抛出Unhandle异常。 你能帮助我吗? 代码: class Program { static string _PipeName = "testPipe"; static void Main(string[] args)

    1热度

    2回答

    我创建了一个Windows服务,它有一个组件监听命名管道与用户空间运行的程序进行交互。我已经使用this answer的代码作为多线程服务器实现的基础,但是,我从下面转载的紧密循环中调用ProcessNextClient操作获得了强大的代码味道。是否真的没有更好的方法来知道何时将另一个流的开放添加到命名管道而不是重复捕获IOException并再次尝试? public void ProcessNe

    0热度

    2回答

    当我尝试使用NamedPipeClientStream在索尼拉斯维加斯的脚本中,我得到异常 The type or namespace name 'NamedPipeClientStream' could not be found (are you missing a using directive or an assembly reference?) 和 The type or names

    0热度

    2回答

    我想问你如何设置从远程客户端访问我的命名管道服务器。到目前为止,我认为NamedPipes只能用于同一台计算机上的进程间通信,但基于http://msdn.microsoft.com/en-us/library/windows/desktop/aa365150%28v=vs.85%29.aspx,应该可以通过设置PIPE_ACCEPT_REMOTE_CLIENTS/PIPE_REJECT_REMO