简体   繁体   中英

Best way to interact between 2 clients in an application

I'm trying to build an application that will have the following parameters:

1) 2 clients will be connect with each other, using the LAN or the Internet;

2) The first one will make something, like click in a button, for example, while the second one will be waiting;

3) After the first one end up, he finalize and pass to the second one the 'control' of the application.

My question:

  • Which is the best way to build this 'client x client' app? It must have a server? (The first one -server- and the second one -client-). I don't know well this part (tcp, connections...) so I'm lost.

Thank you guys.

You don't have to use a server.
Just a P2P communication using C# Sockets
Try to look for C# sockets tutorial. Here a decent one .

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