added a Tracker data type and the start event
Added peers decodification when in binary from
Forget to format the code before last commit
started working on peer communication / improved project structure
Refactored the code a bit , and updated the peer status like it should be
Go fmt and added another torrent for testing
Added a request to peers , where i can request pieces from the file.
Solved a bug , where not all torrents could get their trackers from announcer. Also added some comments to the code
Now the tracker , asks for peers for all announcers when the first one doesn't work. Also i have moved and renamed some methods at downloader.go
Added unchoke , and interested messages. Also all communication with peers have 5 seconds timeout. Also the app doesnt work endlessly, it works until he finishes all it's tasks
Solved the request to peer , it was sometimes sending wrong bytes. Also before request i send an unchoke then interested messages to all peers.
Added bitfield and also fixed the request and unchoke.
Made the code nicer.