M
M
maloii2011-12-13 18:18:42
Algorithms
maloii, 2011-12-13 18:18:42

Network transaction algorithm?

There is a server and a client, everything works on the Internet, terrible GPRS, so not all packets reach 100%. The client sends some data to the server, the server saves it and sends a response to the client that the data is saved, then the client tells the server that it understood that the data was saved. If at some stage there is a failure, then the data on the server should be lost, and on the client there was a note that the data was not delivered.
Roughly speaking, an algorithm is needed so that the client and server know 100% that the data has been delivered or not.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Mamaev, 2011-12-13
@r00tGER

Well, somehow TCP is a protocol with guaranteed packet delivery.
If this is web, then too, any request either leads to a result, or a network error exception is generated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question