Should NOT be created directly, must be used as a mixin with a class
that also inherits a Connection type
|
|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
protocol_extensions(self)
The BitTorrent protocol has 8 reserved bytes in its header |
source code
|
|
|
|
_read_header(self)
Yield the number of bytes for each section of the header and sanity
check the received values. |
source code
|
|
|
|
|
|
|
_read_messages(self)
Read messages off the line and relay or process them depending on
connection type |
source code
|
|
|
|
_valid_msg_len(self,
m)
Check length of received message m against dictionary of valid
message lengths |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
format_message(self,
type,
message='')
[Message Length][Type][Payload] |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|