Qter 发表于 2021-7-30 15:44:20

named pipes windows 命名管道

本帖最后由 Qter 于 2021-7-30 16:08 编辑

https://blog.csdn.net/qq_36119192/article/details/112274131
在 Windows 系统中,存在两种类型的管道:
匿名管道Anonymous pipes:匿名管道是基于字符和半双工的(即单向),只能本地使用
命名管道Named pipes:命名管道则强大的多,它是面向消息和全双工的,同时还允许网络通信,用于创建客户端/服务器系统。可通过名称引用;支持多客户端连接;支持双向通信;支持异步重叠IO



用命名管道来设计跨计算机应用程序实际非常简单,并不需要事先深入掌握底层网络传送协议(如TCP、UDP、IP、IPX)的知识。这是由于命名管道利用了微软网络提供者(MSNP)重定向器通过同一个网络在各进程间建立通信,这样一来,应用程序便不必关心网络协议的细节。


Powershell中查看管道
Get-ChildItem \\.\\pipe\\


chrome中查看管道
file://.//pipe//




Qter 发表于 2022-2-17 20:04:04

管道服务器(Pipe Server)同步盘进程管道客户端(Pipe Client)角标com组件 在 Windows 系统中,存在两种类型的管道: “匿名管道”(Anonymous pipes)和“命名管道”(Named pipes)。匿名管道是基于字符和半双工的(即单向);命名管道则强大的多,它是面向消息和全双工的,同时还允许网络通信,用于创建客户端/服务器系统。https://blog.csdn.net/weixin_39566493/article/details/111158677 V3 以下版本的 powershell 只能使用 ::GetFiles("\\.\\pipe\\") V3 及以上版本的 powershell 还可以使用 Get-ChildItem \\.\pipe\ 使用 chrome 查看管道列表,只需在地址栏输入file://.//pipe// mcloud_ext_pipe_ https://docs.microsoft.com/zh-cn ... c/named-pipe-client 命名管道客户端使用 CreateFile 函数打开命名管道的句柄。 如果管道存在,但其所有实例都繁忙 ,CreateFile 将返回 INVALID _ HANDLE _ VALUE,GetLastError 函数返回 ERROR PIPE _ _ BUSY。
查看日志文件%homepath%\mcloud_ext.loge:\gitcode\mcloud_clientwin\mcloud_shell_ext\mcloud_shell_ext\applet-connection.cpp(line 72) connect: Failed to create named pipe: 拒绝访问。
e:\gitcode\mcloud_clientwin\mcloud_shell_ext\mcloud_shell_ext\applet-connection.cpp(line 72) connect: Failed to create named pipe: 所有的管道范例都在使用中。

自己解决了,服务器所有人都退出来,清除所有任务和控制,关机5分钟后再启动就可以了
你用几个管道?
你的量大是多大量?我用的就一个IPC管道,我现在做的的并发150。   最大255

mcloud_ext_pipe_

https://docs.microsoft.com/zh-cn ... c/named-pipe-client
命名管道客户端使用 CreateFile 函数打开命名管道的句柄。 如果管道存在,但其所有实例都繁忙 ,CreateFile 将返回 INVALID _ HANDLE _ VALUE,GetLastError 函数返回 ERROR PIPE _ _ BUSY。

查看过滤管道
Get-ChildItem \\.\pipe\ | findstr "mcloud_ext_pipe_"



PS C:\Users\CX> Get-ChildItem \\.\pipe\ | findstr "mcloud_ext_pipe_"
------          1601/1/1      8:00            2 mcloud_ext_pipe_Q1g=



查看过滤端口

netstat -ano|findstr "2080"
- a 显示所有端口 -n 以数字形式显示- o显示相关联的进程


查询PID对应的进行进程
tasklist|findstr "2016"


taskkill /f /t /im 程序名

/f 强制终止进程 /t终止指定的进程和它启用的子进程 /im 指定要终止的进程的映像名称。 通配符'*'可用于指定所有任务或映像名称






Qter 发表于 2022-2-21 14:23:52

echo 最近信息>>478.txt
页: [1]
查看完整版本: named pipes windows 命名管道