Skip to content

Releases: xgfone/go-bt

v0.5.0: Refactor the code

21 Mar 14:33
Compare
Choose a tag to compare

v0.4.3

24 Jul 06:40
Compare
Choose a tag to compare
  • Fixed:
    • Correct the calculation the bucket id of route table.
    • Terminate the transaction in the response from get_peers and find_nodes.
  • Others:
    • DHT bootstrap ignores the unsupported addresses.
    • Log more information when the response is timeout.

v0.4.2

11 May 15:16
Compare
Choose a tag to compare
  • Fixed:
    • httptracker.Client uses the argument context.Context when sending the request.
    • krpc.Error.MarshalBencode returns the marshelled result when err is equal to nil.

v0.4.1

10 Feb 03:54
Compare
Choose a tag to compare
  • Fixed:
    • NewInfoFromFilePath supports the directory to create a torrent Info instance (#1)

v0.4.0

03 Jan 03:14
Compare
Choose a tag to compare
  • Added:
    • Add the implementations of binary.BinaryMarshaler and binary.BinaryUnmarshaler for Hash.
  • Changed:
    • GetPeers returns the list of GetPeersResult instead of the channel.
  • Fixed:
    • Fix some bugs.

v0.3.0

13 Sep 09:28
Compare
Choose a tag to compare
  • Added:
    • Add some common piece size constants, such as 256KB, 512KB, 1M, 2M, 4M.
  • Changed:
    • When listening on the empty address, that's, 0.0.0.0 or [::], the DHT server enables the ipv4/ipv6 protocols by default.
  • Other:
    • Export the fileds of the peer server peerprotocol.Server to rewrite the settings.

v0.2.0

19 Jun 14:06
Compare
Choose a tag to compare
  • Added:
    • Add the timeout for dialing the remote peer by the peer protocol.
    • Add the function GetPeers to easily get the peers from the trackers.
    • Add the block downloading handler BlockDownloadHandler to download the piece block.
    • Add the method FilePieces for File to calculate the pieces that the file holds.
    • Add the method PieceOffset and GetFileByOffset to calculate the offset of the piece.
    • Add the method PathWithPrefix for File, which is the same as File.Path, but containing a prefix path.
    • Add the new types FilePiece and PieceBlock to represent the information of the piece and the block.
    • Add the new interfaces Reader and Writer to read the block data from the torrent file or to write the block data into the torrent file.
    • Add the NOOP implementations for the handler interfaces Handler, Bep3Handler, Bep5Handler, Bep6Handler and Bep10Handler.
    • Add some new fileds for PeerConn and update its implementation.
  • Changed:
    • Add the prefix MType for the message type constants.
    • Update the interfaces Bep3Handler and Bep10Handler.
    • Update the tracker implementation, such as adding context.Context to control the timeout.
    • Use the type BitField as the piece indexes to represent which the peer contains.
    • File.Path returns the file path containing the directory name when Info.Name is a directory.
    • MetaInfo.Magnet uses the information of Info as the default when the arguments are the empty value.
    • For the peer server, the configuration MaxLength is set by default to 262144, that's 256KB, instead of 0.
  • Fixed:
    • Fix some bugs.

v0.1.0

19 Jun 13:19
Compare
Choose a tag to compare

First Prototype Release!