def METHOD_NAME(self, data):
    sent_all = True
    data_len = struct.pack('<Q', len(data))
    packet = b'ZBXD\x01' + data_len + str.encode(data)
    try:
        sock = socket.socket()
        sock.settimeout(int(self.timeout))
        sock.connect((self.host, self.port))
        self.log.debug('request: {0}'.format(data))
        sock.sendall(packet)
        resp_header = self._receive(sock, 13)
        resp_body_len = struct.unpack('<Q', resp_header[5:])[0]
        resp_body = self._receive(sock, resp_body_len)
        self.log.debug('response: {0}'.format(resp_body))
        if 'failed: 0' not in str(resp_body):
            sent_all = False
            self.log.error(
                'On request:\n{0}\nget response'
                ' with failed items:\n{1}'.format(
                    data,
                    resp_body))
    finally:
        sock.close()
    return sent_all