| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
AnomosProtocol
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Send message for network messages, ie. CONFIRM, TCODE and for relaying messages |
Handles an incoming message. First byte designates message type, may be any one of (CHOKE, UNCHOKE, INTERESTED, NOT_INTERESTED, HAVE, BITFIELD, REQUEST, PIECE, CANCEL) |
Anomos messages are slightly different from BitTorrent messages because of the virtual streams used to keep the number of active connections low. All messages are prefixed with a 2-byte Stream ID. The format is thus: [StreamID][Message Length][Type][Payload]
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Feb 8 16:23:22 2010 | http://epydoc.sourceforge.net |