def _get_sender(self, tag, host, port, bufmax, timeout):
        '''
        Get the Fluentd sender for the given arguments.

        Arguments:
        tag     --  The base tag of the log event, representing the
                    application.
        host    --  The host name or IP address of the fluentd server.
        port    --  The port number the fluentd server is listeneing on.
        bufmax  --  The size of the buffer.
        timeout --  The timeout

        Returns:
        A FluentSender with the given configuration.
        '''
        sender = None
        key = "%s%s%d%d%f" % (tag, host, port, bufmax, timeout)
        if key in self._senders:
            sender = self._senders[key]
        else:
            sender = FluentSender(tag, host, port, bufmax, timeout)
            self._senders[key] = sender
        return sender
dataset/ETHPy150Open lmco/laikaboss/laikaboss/modules/log_fluent.py/LOG_FLUENT._get_sender/original