6

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)
1
  • 1
    You sort of answered yourself. :-) Commented Nov 9, 2009 at 10:37

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Are there any JSON-RPC implementation for both C# and Python that support bidirectional communication ?
not sure abt JSON-RPC, but for your purpose why you need JSON-RPC, just send the packet data over socket/http and return it back after processing, like a web api
2

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.