InputStreams and Socket data


#1

I have data coming in across the network (not Juce socket classes) and need to read some blocks of it, probably as a stream. But I don’t see what class fits? The MemoryInputStream looks OK, but I don’t see where I can append new data as it comes in - basically I want to start reading, and get as much as I can, then come back later for more. I also need to flush out early data as I’ve read it.

Is this the right class? Where should I look?

Bruce


#2

There’s nothing as specialised as that, really. Best plan might be to write your own subclass of InputStream?


#3