These are chat archives for anacrolix/torrent
/go/src/github.com/anacrolix/go-libutp/utp_api.cpp:75: undefined reference to `operator new(unsigned long)'
Hey, I'm trying to use
torrent/bencode to decode BEP 9 messages and I have a problem:
To put briefly, the
data messages, which carries the torrent metadata, are prefixed with a bencoded dictionary such as
d8:msg_typei1e5:piecei0e10:total_sizei14223ee. After this prefix comes the info dictionary
I'm creating a
bencode.NewDecoder to decode only the first bencoded dictionary but the decoder doesn't stop after the first one and decodes the second dictionary as well (I think). Although, the
bytes.Buffer.Bytes() indicates that 4096 bytes are consumed every single time so it might be an issue with some kind of buffering mechanism inside
bytes.Buffer or in
Any help would be greatly appreciated, much thanks!