コード例 #1
0
ファイル: process.py プロジェクト: ulrikpedersen/malcolm
 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
コード例 #2
0
 def setUp(self):
     self.cs = ClientSocket.make_socket("dzmq://ipc://frfes.ipc")
     self.cs.loop_run()
コード例 #3
0
 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)