<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-driver-serverdescription.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'mongodb-driver-serverdescription.gethelloresponse.php',
    1 => 'MongoDB\\Driver\\ServerDescription::getHelloResponse',
    2 => 'Returns the server\'s most recent &quot;hello&quot; response',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-driver-serverdescription.php',
    1 => 'MongoDB\\Driver\\ServerDescription',
  ),
  'prev' => 
  array (
    0 => 'class.mongodb-driver-serverdescription.php',
    1 => 'MongoDB\\Driver\\ServerDescription',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-serverdescription.gethost.php',
    1 => 'MongoDB\\Driver\\ServerDescription::getHost',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/mongodb/driver/serverdescription/gethelloresponse.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-driver-serverdescription.gethelloresponse" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\Driver\ServerDescription::getHelloResponse</h1>
  <p class="verinfo">(mongodb &gt;=1.13.0)</p><p class="refpurpose"><span class="refname">MongoDB\Driver\ServerDescription::getHelloResponse</span> &mdash; <span class="dc-title">Returns the server&#039;s most recent &quot;hello&quot; response</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-driver-serverdescription.gethelloresponse-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\Driver\ServerDescription::getHelloResponse</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   Returns an array of information describing the server. This array is derived
   from the most recent (at the time the
   <span class="classname"><a href="class.mongodb-driver-serverdescription.php" class="classname">MongoDB\Driver\ServerDescription</a></span> was constructed)
   <a href="https://www.mongodb.com/docs/manual/reference/command/hello/" class="link external">&raquo;&nbsp;hello</a>
   command response obtained through
   <a href="https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md" class="link external">&raquo;&nbsp;server monitoring</a>.
  </p>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    When the driver is connected to a load balancer, this method will return an
    empty array since load balancers are not monitored. This is in contrast to
    <span class="function"><a href="mongodb-driver-server.getinfo.php" class="function">MongoDB\Driver\Server::getInfo()</a></span>, which would return the
    backing server&#039;s
    <a href="https://www.mongodb.com/docs/manual/reference/command/hello/" class="link external">&raquo;&nbsp;hello</a>
    command response from the initial connection handshake.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-driver-serverdescription.gethelloresponse-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-serverdescription.gethelloresponse-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns an array of information describing this server.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-driver-serverdescription.gethelloresponse-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <ul class="simplelist">
   <li>Wirft eine <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.php" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span>, wenn beim Analysieren von Argumenten ein Fehler auftritt.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-driver-serverdescription.gethelloresponse-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="mongodb-driver-server.getinfo.php" class="function" rel="rdfs-seeAlso">MongoDB\Driver\Server::getInfo()</a> - Returns an array of information describing this server</span></li>
   <li><a href="https://www.mongodb.com/docs/manual/reference/command/hello/" class="link external">&raquo;&nbsp;hello</a> command in the MongoDB manual</li>
   <li><a href="https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md" class="link external">&raquo;&nbsp;Server Discovery and Monitoring Specification</a></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>