Q
Q
QueenS2018-09-16 21:13:03
ASP.NET
QueenS, 2018-09-16 21:13:03

How to create a local application based on the TCP protocol?

I would like to understand the task:
Develop an application that counts the number of copies of itself running on the
local network. An application must use a set of messages to
inform other applications of its state. Once launched, the application
should broadcast a message that it has been launched.
Having received a message about the launch of another application, it should inform this
application that it is running. Before shutting down, an application
must inform all known applications that it is shutting down.
The screen should display a list of IP addresses of computers on which
the application is running.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2018-09-16
@Morpheus_God

Create a server. In C#, this is the Socket or TCPListener/TCPClient class. Socket has async methods implemented. BeginReceive and EndReceive.
You place each connection in List. Well, you are already processing the connection list as you need. You can also post there.
Check it out, you might find something new for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question