0

I am working on an application that requires me to interface a python script running on linux OS on a virtual machine with a .net c# application having wpf forms running on windows such that that the c# application sends files to the python script for processing. What are my options in light of this setting?

I tried using monodevelop on linux in an effort to run .NET applications but it didn't work out as monodevelop doesn't support wpf forms.

https://i.sstatic.net/7MRPb.jpg

2 Answers 2

1

Use sockets to send the file bytes and the result between them.

Some documentation here:

C# Sockets

Python Sockets

EDIT: This should work using virtual machines

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

Comments

0

If you have network connection between machines (local network, host only or Internet) then you could listen for files on python using:

  1. UDP
  2. TCP
  3. SimpleHTTPServer

Then in C# app use:

  1. UDPClient
  2. TCPClient
  3. WebClient

3 Comments

That was my initial guess to establish client-server communication between the two scripts but would this method work for a virtual machine?
No problem, just setup a network. What kind of virtual machine do you have?
I don't have much experience with workstation, but you can refer to documentation and setup a virtual network. Host-Only Networking should be the simplest choice, but if you want Internet connection from guest OS, then try bridged.

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.