I am new to python, and I am trying to send a message over a TCP socket to another component (client). I have to send the message in chunks of 1024 bytes in response to client REQ.
The problem is that when first chunk of 1024 bytes is received by the client, it contains a character string appended at the end from the Initial Message that the client had sent as REQ.
What can I do to flush the socket connection before delivering the messsage
my setsockopt(sock et.SOL_SOCKET, socket.SO_REUSE ADDR,1)
Thanks
Amit
The problem is that when first chunk of 1024 bytes is received by the client, it contains a character string appended at the end from the Initial Message that the client had sent as REQ.
What can I do to flush the socket connection before delivering the messsage
my setsockopt(sock et.SOL_SOCKET, socket.SO_REUSE ADDR,1)
Thanks
Amit
Comment