def __init__(self, poller): Stream.__init__(self, poller) self.complete = False self.got_anything = False self.left = 68 self.buff = [] self.count = 0 self.id = None self.piece = None self.smallmessage = SMALLMESSAGE
def __init__(self, poller): ''' Initialize BitTorrent stream ''' Stream.__init__(self, poller) self.complete = False self.got_anything = False # This is the size of the handshake self.left = 68 self.buff = [] self.count = 0 self.id = None self.piece = None
def __init__(self, poller): ''' Initialize the stream ''' Stream.__init__(self, poller) self.incoming = [] self.state = FIRSTLINE self.left = 0
def __init__(self, poller): Stream.__init__(self, poller) self.incoming = [] self.state = FIRSTLINE self.left = 0