I know I may receive red arrows for asking a broad question but I've searched a lot and I'm still stuck.
I have built my application in C#.Net, it is a desktop application with its own graphical interface. At some point the application fires up a dialog, connects to a server, sends some data and receives a file in the same dialog. The user clicks on a button and saves the file on his local computer.
Now my question is what is the best approach to communicate with the server. Windows or Linux doesn't matter. I just need the easiest way to achieve this. Even some keywords to start with a valuable to me.