Python和C#之间的IPC
我想在Windows中的Python和C#应用程序之间传递数据(我希望通道是双向的)实际上,我想将包含有关用C#(SharpPcap)捕获的网络数据包的数据的结构传递给Python应用程序,然后将修改后的数据包发送回C#程序.你有什么建议 ?(我宁愿这是一种快速的方法)到目前为止,我的搜索显示我可以使用这些技术,但是我不知道哪个:
I want to pass data between a Python and a C# application in Windows (I want the channel to be bi-directional) In fact I wanna pass a struct containing data about a network packet that I've captured with C# (SharpPcap) to the Python app and then send back a modified packet to the C# program. What do you propose ? (I rather it be a fast method) My searches so far revealed that I can use these technologies, but I don't know which:
- JSON-RPC
- 使用WCF(运行项目在IronPython中使用Ironclad)
- WCF(将Python用于.NET)
为什么不使用简单的套接字通信,或者如果您希望可以启动简单的http服务器和/或对其进行json-rpc.
Why not use a simple socket communication, or if you wish you can start a simple http server, and/or do json-rpc over it.