code: def _receive(self, sock, count):
          
  
          buf = b''
  
          while len(buf) < count:
              chunk = sock.recv(count - len(buf))
              if not chunk:
                  break
              buf += chunk
  
          return buf
docs: Reads socket to receive data from zabbix server.
  
          :type socket: :class:`socket._socketobject`
          :param socket: Socket to read.
  
          :type count: int
          :param count: Number of bytes to read from socket.