Exemple #1
0
 def __init__(self, addr, hash, streamhost):
     SocketEventMixin.__init__(self)
     self.handle_expt = self.post_connect_expt
     self.handle_error = self.post_connect_error
     self.handle_close = self.post_connect_close
     self.do_disconnect = self.post_connect_disconnect
     self.addr = addr
     self.hash = hash
     self.streamhost = streamhost
     self.data = None
     common.socket.__init__(self)
Exemple #2
0
 def __init__(self, sock, addr, server):
     SocketEventMixin.__init__(self)
     common.socket.__init__(self, sock)
     self.server = server
     self.data = None
     self.proc( self.s5b_ok() )