@cacheResult<EOL><INDENT>def replySocket(self, port, host='<STR_LIT:*>'):<DEDENT>
try:<EOL><INDENT>socket = self._context.socket(zmq.REP)<EOL>socket.bind(self.tcpAddress(host, port))<EOL><DEDENT>except Exception as e:<EOL><INDENT>newMsg= str("<STR_LIT>" % (str(e), host, port))<EOL>raise (type(e))(newMsg)<EOL><DEDENT>return socket<EOL>
Create a REP-style socket for servers