在 Linux 上,用户态进程和服务之间的 IPC 相当常见的方法是,例如,套接字接口(interface)(Unix 域或网络链接)。
简单地说——这在 Windows 中的模拟是什么?用户态进程如何与服务通信?
准备阶段:假设我有一个正在运行的后台服务来监视网络上的设备。如果我想编写一个程序来利用此服务提供的服务,执行此操作的常见“Windows 方式”是什么?
如果我在这里完全偏离基础,Windows 服务可以在 Windows 操作系统上扩展自身以便其他进程可能知道它正在主动监听连接的常见方式是什么?
最佳答案
Windows 有命名管道,
"A named pipe is a named, one-way or duplex pipe for communication between the pipe server and one or more pipe clients. All instances of a named pipe share the same pipe name, but each instance has its own buffers and handles, and provides a separate conduit for client/server communication. The use of instances enables multiple pipe clients to use the same named pipe simultaneously."
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365590%28v=vs.85%29.aspx
关于linux - Windows IPC 模拟 Linux Unix 域和 Netlink 套接字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35018997/