def get_client_sock(self, server_strings): # If we already have a client sock, return that # TODO: handle localhost conversion here? for string in server_strings: if string in self._client_socks: return self._client_socks[string] cs = ClientSocket.make_socket(string) assert cs, "Can't make socket for {}".format(string) self._client_socks[string] = cs cs.loop_run() return cs
def setUp(self): self.cs = ClientSocket.make_socket("dzmq://ipc://frfes.ipc") self.cs.loop_run()
def setUp(self): self.cs = ClientSocket.make_socket("zmq://ipc://tmp/frfes.ipc") self.cs.loop_run() self.ss = ServerSocket.make_socket("zmq://ipc:///tmp/frfess.ipc", None) self.ss.open(self.ss.address)