Пример #1
0
 def __init__(self,
              ssh_channel,
              sock,
              sockname,
              peername,
              target,
              info=None):
     SocketConnection.__init__(self, ssh_channel, sockname, peername,
                               target, "ssh", info)
     self._raw_socket = sock
Пример #2
0
 def __init__(self, *args):
     SocketConnection.__init__(self, *args)
Пример #3
0
 def __init__(self, socket, local, remote, target, info, ws_handler):
     SocketConnection.__init__(self, socket, local, remote, target, info)
     self.protocol_type = "websocket"
     self.ws_handler = ws_handler
Пример #4
0
 def __init__(self, socket, local, remote, target, socktype, ws_handler):
     SocketConnection.__init__(self, socket, local, remote, target,
                               socktype)
     self.protocol_type = "websocket"
     self.ws_handler = ws_handler
     self.pending_read = Queue()
Пример #5
0
 def __init__(self, ssh_channel, sock, target, info={}):
     SocketConnection.__init__(self, ssh_channel, sock.getsockname(), sock.getpeername(), target, "ssh", info)
     self._raw_socket = sock
Пример #6
0
 def __init__(self, socket, local, remote, target, info, ws_handler):
     SocketConnection.__init__(self, socket, local, remote, target, info)
     self.protocol_type = "websocket"
     self.ws_handler = ws_handler