I receive an mp3 stream in client1 and then I send it out again to client2 in real time.
I want to create a buffer which would store some data and it would only send it out to client2 when it fills completely. This would help me to avoid deadlocks.
I am not sure how to create such a buffer in python. What data structure can I use and how can I implement it? Any hints?