I have an app (much like an ALG, or application-level gateway) that reads data from a Net::StreamSocket, mangles it, and writes it to another Net::StreamSocket.
It needs to do so in real-time and without blocking. So I wanted to use a std::streambuf to move the data-through.
Has anyone done anything similar already?
I wanted to use a Net::SocketReactor to deliver read notifications of when I can read data from the source socket and append it to the streambuf, and use write notifications when I can write some or all of the buffered data to the destination socket.