I’m trying to use something that could best be described as a binary output queue. In short, one thread will fill a queue with binary data and another will pop this data from the queue, sending it to a client socket.
What’s the best way to do this with STL? I’m looking for something like std::queue but for many items at a time.
Thanks
What does “binary data” mean? Just memory buffers? Do you want to be able push/pop one buffer at a time? Then you should wrap a buffer into a class, or use
std::vector<char>, and push/pop them ontostd::deque.