V
V
Vadim kyklaed2018-12-14 17:04:29
Computer networks
Vadim kyklaed, 2018-12-14 17:04:29

The principle of operation of tcp client server, how to specify for which functionality the command goes?

Tell me how to send incoming traffic and determine what it is intended for?
I have two clients they communicate through the server.
client1 -> sends login and password to client2 - through the server
client2 -> answers that the login password is correct and sends the answer through the server to client1
, the key comes to client1.
and the functionalad can be about 10 positions. how can I show both clients and server where everything goes?
client1.send(admin,admin) -> (server) -> client2(accepted, check)
client2.send(status OK) -> (server) {session key} -> client1(accepted session key)
there can be many different commands .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2018-12-15
@martin74ua

hire a programmer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question