aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/BufferedInStream.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Use standard exception classesPierre Ossman2024-11-061-5/+6
| | | | | Use the more specific already included exception classes for common errors to keep things more understandable.
* Use static string for exceptionsPierre Ossman2024-11-061-3/+6
| | | | | In preparation for using the built in C++ exception classes, which do not accept a format string.
* Use nullptr in all C++ codePierre Ossman2024-06-241-4/+4
| | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
* Use stdint typesPierre Ossman2023-02-011-4/+4
| | | | | Avoid having our own custom stuff and instead use the modern, standard types, for familiarity.
* Make BufferedInStream allocation more availablePierre Ossman2022-08-251-2/+16
| | | | | Allow subclasses to call it, instead of it being strictly internal. This is useful when a subclass can only provide data in minimum sized chunks.
* Increase maximum input bufferPierre Ossman2021-11-041-1/+1
| | | | | | macOS' built in VNC server unfortunately sends the entire monitor in a single rect, so we need to be prepared to buffer a lot of data in case the monitor has a large resolution.
* Change streams to be asynchronousPierre Ossman2020-05-211-2/+2
| | | | | | | | | | Major restructuring of how streams work. Neither input nor output streams are now blocking. This avoids stalling the rest of the client or server when a peer is slow or unresponsive. Note that this puts an extra burden on users of streams to make sure they are allowed to do their work once the underlying transports are ready (e.g. monitoring fds).
* Dynamically allocate stream buffersPierre Ossman2020-05-211-4/+55
| | | | | This allows us to handle peaks in input and output streams gracefully without having to block processing.
* Don't shuffle input buffer unless actually neededPierre Ossman2020-05-211-4/+6
|
* Remove unused bufSize argument from streamsPierre Ossman2020-05-211-2/+2
|
* Simplify stream availability handlingPierre Ossman2020-05-211-11/+6
| | | | | Just have a simply number of bytes argument to avoid a lot of complexity.
* Create common base classes for buffered streamsPierre Ossman2020-05-211-0/+72
Most streams are backed by a memory buffer. Create common base classes for this functionality to avoid code duplication.