linux - Windows IPC 模拟 Linux Unix 域和 Netlink 套接字

标签 linux windows ipc unix-socket netlink

在 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/

相关文章:

php - 如果内存过度使用,哪个进程会被内核杀死? child 还是 parent ?

c - fork 并等待子进程似乎根本不等待

python - Linux 上的 xlwings 替代方案

windows - 路径前缀\??\和\\?\

c - 是否可以通过IPC消息传递队列发送信号?

linux - 如何正确格式化这个 bash if 语句?

windows - 如何重新配置​​ RabbitMQ 在 Windows 上不使用 %appdata%?

windows - 使用 CertReq.exe,如何对 Subject 中的特殊字符进行编码

python - 从命名管道读取连续数据

ruby - 高效的 Ruby 和 Node.js 通信/IPC