Answer the question
In order to leave comments, you need to log in
How to mark TCP traffic in Python?
Tell me which way to dig, there is a client and a server on sockets, how to mark each message or file so that the server understands where the message begins and ends. The data is read using recv(bytes). I can’t find the info, and as an option, for example, before each sending of data, send a start and end message at the end, and on the server read in a loop until I find the word end? Maybe this is not the right option, xs. If anyone has something to share, I will be grateful)
PS Packing in json does not work, problems with encodings have not yet been sorted out (
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question