Need help understanding protocol

"eloocsemaj" <[email protected]>
Newsgroups gmane.network.bit-torrent.general
Message-ID <[email protected]>

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)?

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 Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.