Added a space to be standard
Since we actually defined pieces in the 'main' decided to just send pieces to the function instead of the file.
Shortened the code.
Added more information
Updated variable names to match standards
Updated to work for me on windows. I don't really know what this does, but everywhere I saw inet_ntop being imported online it was like this.
Updated the function to match standards
I don't know why we would want to sleep here, so I just removed it.
Moved the peer only functions to the peer class
These were already defined outside of the function, so I decided to send them in, instead of making new instances of them.
Removed the countdown
Error handling.
Now if the tracker doesn't reply in compact form, we can still identify who the peers are. Yay!
Easy to test the different torrent files. (short term solution)
If we have no peers, the program will hang when trying to connect. This allows the program to exit more gracefully.
A little bit more output to see what's happening.
New port, just for fun.
White space.