Example #1
0
 def __init__(self, project, host, port, connect_timeout=5.0):
     NetworkClient.__init__(self, project, "network:%s:%s" % (host, port))
     self.host = host
     self.port = port
     self.connect_timeout = connect_timeout
 def __init__(self, project, socket_filename, connect_timeout=5.0):
     NetworkClient.__init__(self, project,
                            "unix_socket:%s" % socket_filename)
     self.socket_filename = socket_filename
     self.connect_timeout = connect_timeout
Example #3
0
 def __init__(self, project, socket_filename, connect_timeout=5.0):
     NetworkClient.__init__(self, project, "unix_socket:%s" % socket_filename)
     self.socket_filename = socket_filename
     self.connect_timeout = connect_timeout
 def __init__(self, project, host, port, connect_timeout=5.0):
     NetworkClient.__init__(self, project, "network:%s:%s" % (host, port))
     self.host = host
     self.port = port
     self.connect_timeout = connect_timeout