bencode.py icon indicating copy to clipboard operation
bencode.py copied to clipboard

Add streaming capabilities

Open nicolas-graves opened this issue 1 year ago • 0 comments

Thanks for the library !

Let's say we're reading from a port/stream that has multiple concatenated bencode messages. Is there a way to handle that efficiently in this bencode library (I don't see it in documentation) ? What I mean by efficiently is not having to brute force every possible combination in a concatenation of bencode messages, but reading gradually, and stopping / composing a list of bencode message while the port/stream is read.

nicolas-graves avatar Jan 28 '25 08:01 nicolas-graves