简体   繁体   中英

Simple way to communicate between C# app and Python app

I've got a C# app running under Windows and Linux. I would like to implement a way to communicate with it through a Python script.

I've already tried using ZeroMQ library, and it was working right when the C# app was running on Windows - I could send/receive messages on both ends. But I failed miserably when I tried to use on Linux/Mono - the app crashed, kernel32 exception. I tried recompiling the libzmq.dll, using the tutorials, but I can't get it right.

Is there any other way to do this, or should I stick with ZeroMQ and try to get it running on Linux/Mono?

use NetMQ, C# port of ZeroMQ that runs on Windows and Mono without 32/64bit issue.

https://github.com/zeromq/netmq https://www.nuget.org/packages/NetMQ/

您始终可以打开TCP或UDP套接字并通过它进行通信。

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