1 """@namespace IMP.parallel.master_communicator
2 Classes for communicating from the master to slaves."""
8 """For communicating from the master to slaves."""
12 def __init__(self, master_addr, lock):
13 _Communicator.__init__(self)
14 self._master_addr = master_addr
15 self._connect_to_master()
18 def _connect_to_master(self):
19 host, port, identifier = self._master_addr
20 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
21 s.settimeout(self.connect_timeout)
22 s.connect((host, port))
31 _Communicator._send(self, obj)
For communicating from the master to slaves.
See IMP.parallel for more information.