multiple send from server to client python

后端 未结 2 725
青春惊慌失措
青春惊慌失措 2020-12-07 06:32

First I am sending the requested file from the server to the client and after that I want to send the computed sha of the file from the server to the client, so that the cli

2条回答
  •  感动是毒
    2020-12-07 06:55

    A TCP stream needs to be formatted in both ends, since it is a stream not packets. I suppose you could look for a nullbyte ('\x00') which should signal end of file.

提交回复
热议问题