[BitTorrent] Need help understanding protocol

Olaf van der Spek OvdSpek at LIACS.NL
Fri Nov 12 15:35:08 EST 2004


eloocsemaj wrote:
> 
> I'm trying to understand the peer wire protocol but I'm having some trouble with the 
> cancel message. Can cancel be used to stop a block that is already being transmitted? If 
> not, how is this done? Specifically, how should a client behave in these circumstances:
> - The client receives a cancel message for a block it is currently transmitting.
> - The client wants to cancel a block that it is currently receiving. If sending a cancel 
> message can accomplish this, when is it safe to discard the data in the receiving buffer 
> (where does the next message begin)?

Messages in transit can't be canceled.

> 
> I apologize if the answers are obvious but this is my first try at network programming and 
> I couldn't find this information in the documentation. Thanks!
> 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 


-- 
Olaf van der Spek
http://xccu.sf.net/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the BitTorrent mailing list