Ejemplo n.º 1
0
 def __init__(self, socket, shell_ctor, on_connect=None,
         on_disconnect=None, on_send=None, on_recv=None):
     threading.Thread.__init__(self)
     RemotePypsiSession.__init__(self, socket, on_send, on_recv)
     self.running = False
     self.shell_ctor = shell_ctor
     self.on_connect = on_connect if on_connect else lambda x : None
     self.on_disconnect = on_disconnect if on_disconnect else lambda x : None
Ejemplo n.º 2
0
 def __init__(self,
              socket,
              shell_ctor,
              on_connect=None,
              on_disconnect=None,
              on_send=None,
              on_recv=None):
     threading.Thread.__init__(self)
     RemotePypsiSession.__init__(self, socket, on_send, on_recv)
     self.running = False
     self.shell_ctor = shell_ctor
     self.on_connect = on_connect if on_connect else lambda x: None
     self.on_disconnect = on_disconnect if on_disconnect else lambda x: None
Ejemplo n.º 3
0
 def __init__(self, socket, shell_ctor):
     threading.Thread.__init__(self)
     RemotePypsiSession.__init__(self, socket)
     self.running = False
     self.shell_ctor = shell_ctor
Ejemplo n.º 4
0
 def __init__(self, socket, shell_ctor):
     threading.Thread.__init__(self)
     RemotePypsiSession.__init__(self, socket)
     self.running = False
     self.shell_ctor = shell_ctor
     self.fp = open('out.txt', 'w')
Ejemplo n.º 5
0
 def __init__(self, socket, shell_ctor):
     threading.Thread.__init__(self)
     RemotePypsiSession.__init__(self, socket)
     self.running = False
     self.shell_ctor = shell_ctor
     self.fp = open('out.txt', 'w')
Ejemplo n.º 6
0
 def __init__(self, socket, shell_ctor):
     threading.Thread.__init__(self)
     RemotePypsiSession.__init__(self, socket)
     self.running = False
     self.shell_ctor = shell_ctor