Create a REP-style socket for servers

def replySocket(self, port, host='*'):
        '''
        Create a REP-style socket for servers
        '''
        try:
            socket = self._context.socket(zmq.REP)
            socket.bind(self.tcpAddress(host, port))
        except Exception as e:
            newMsg= str("%s %s:%d" % (str(e), host, port))
            raise (type(e))(newMsg)
        return socket