def __init__(self, host='localhost', port=8125, max_buffer_size=50):
    'Initialize an Offline Connection object.\n\n        >>> monascastatsd = MonascaStatsd()\n\n        :name: the name for this client.  Everything sent by this client\n            will be prefixed by name\n        :param host: the host of the MonascaStatsd server.\n        :param port: the port of the MonascaStatsd server.\n        :param max_buffer_size: Maximum number of metric to buffer before\n         sending to the server if sending metrics in batch\n        '
    self.max_buffer_size = max_buffer_size
    self._send = self._send_to_server
    self.connect(host, port)
    self.encoding = 'utf-8'
Initialize an Offline Connection object.

>>> monascastatsd = MonascaStatsd()

:name: the name for this client.  Everything sent by this client
    will be prefixed by name
:param host: the host of the MonascaStatsd server.
:param port: the port of the MonascaStatsd server.
:param max_buffer_size: Maximum number of metric to buffer before
 sending to the server if sending metrics in batch
def __init__(self, host='localhost', port=8125, max_buffer_size=50):
    'Initialize an Offline Connection object.\n\n        >>> monascastatsd = MonascaStatsd()\n\n        :name: the name for this client.  Everything sent by this client\n            will be prefixed by name\n        :param host: the host of the MonascaStatsd server.\n        :param port: the port of the MonascaStatsd server.\n        :param max_buffer_size: Maximum number of metric to buffer before\n         sending to the server if sending metrics in batch\n        '
    self.max_buffer_size = max_buffer_size
    self._send = self._send_to_server
    self.connect(host, port)
    self.encoding = 'utf-8'