简体   繁体   中英

IPC between Python and 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:

  1. JSON-RPC
  2. Use WCF (run the project under IronPython using Ironclad)
  3. WCF (use Python for .NET)

Use JSON-RPC because the experience that you gain will have more practical use. JSON is widely used in web applications written in all of the dozen or so most popular languages.

为什么不使用简单的套接字通信,或者如果您希望可以启动一个简单的http服务器,和/或对它执行json-rpc。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM