data = self.SOCKET.recv(16384)
users = data.decode().split('&')
print(users)
I am working on chat program. When I received a small amount of data (around 100 characters), I can see all data. But when I received more much data (around is 10000 characters), I can't see the complete data. I can see only some section. After that, when my friend received an amount of data of 10000 characters with other computer, he can see all data. I thought it is depend on ethernet and wifi. So my friend tried it with wifi. He again can receive all data. Is it depend computer? and should we go into receive buffer with hand? what are differences?
*100 and 10000 character are for example.
recvhas no idea how much data is expected, only how much is in the latest packet. It is up to the protocol how much to wait for. It may need to callrecvseveral times to get all the data.