Example #1
0
 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
Example #2
0
 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
Example #3
0
 def __init__(self, poller):
     ''' Initialize the stream '''
     Stream.__init__(self, poller)
     self.incoming = []
     self.state = FIRSTLINE
     self.left = 0
Example #4
0
 def __init__(self, poller):
     Stream.__init__(self, poller)
     self.incoming = []
     self.state = FIRSTLINE
     self.left = 0