ith
> loop.create_task(main_coro()); loop.run_forever(). Hit ^C to stop.
>
> Good luck!
>
> --Guido
>
> On Mon, Nov 30, 2015 at 9:07 PM, Leslie Klein > wrote:
>
>> I am writing a BitTorrent client using asyncio and the Streams API. I'm
>> trying to w
I am writing a BitTorrent client using asyncio and the Streams API. I'm
trying to work at the highest level possible.
I have the download part working (client opens a connection to peers
provided by tracker and downloads all pieces). Client can also upload
pieces to connected peers, if requested
nnect tasks to the loop (with a new set of
peers), maybe this is what asyncio does.
On Thursday, October 22, 2015 at 11:34:01 PM UTC-4, Leslie Klein wrote:
>
> I am building a bittorrent client using the python 3.4 asyncio library. I
> get up to a certain point in the protocol (receive U
I am building a bittorrent client using the python 3.4 asyncio library. I
get up to a certain point in the protocol (receive Unchoke message from a
remote peer) and then the remote peer closes the connection. Here is the
output to the console.
https://docs.python.org/2/reference/datamodel.html#