Is there any way to supress recv()
function in python socket programming??
Suppose server sent a recv()
to client
before getting data from client server sent another recv()
to client
Then the first recv()
should be ignored.
Is this possible?
Is there any way to supress recv()
function in python socket programming??
Suppose server sent a recv()
to client
before getting data from client server sent another recv()
to client
Then the first recv()
should be ignored.
Is this possible?
It's up to your application to decide what to ignore.
If you need that functionality, you have to provide information (e.g.: timestamps) in the packets and you have to delay their processing enough so you can recieve the newer packets.
recv() and send() are used for sending and receiving data. Once you have received data using recv(), it's upto whether you want to do something with it or you can just ignore it.