A
A
alexeysikora2021-12-18 02:52:02
Computer networks
alexeysikora, 2021-12-18 02:52:02

What is a server in client-server chat?

I need to write a client-server chat for a local network with the ability to transfer files and messages p2p.
In general, I don’t understand much about this, and they didn’t give me any bases, so I’m trying to parse every word in the task, so that later I can try to write some kind of chat from all this, but at the moment I’m interested in the question - what is the server in the client-server chat? In my understanding, a server is a computer with files to which requests are sent and from which answers are received, but p2p, as I understand it, implies that every computer on the network can be a server, then why is there a transfer in a p2p client-server chat at all?
I would be very happy if the readers of this question shared some sources or resources that could help me figure this whole thing out :/

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
hint000, 2021-12-18
@hint000

then what for in general in a client-server chat p2p transmission?
In order not to strain the server (and its channel to the Internet). It's one thing to drive short text messages through the server, and quite another - large files.

G
Griboks, 2021-12-18
@Griboks

1. Assign one of the devices as a server.
2. Working with a classic client-server application.

S
Saboteur, 2021-12-18
@saboteur_kiev

The server is, first of all, the one who waits for the client to connect to it.
The client is the one who initiates the communication.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question