Merge pull request #4621 from atif-shaikh/CRM-15589
[civicrm-core.git] / CRM / Utils / Network.php
index 11dc5157f5e9bb9dcd32573d65c4f18087c6726f..f9b3a4f088a7c1c04a5a442646a5fdd86f54ba2f 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id: $
  *
  */
@@ -40,8 +40,11 @@ class CRM_Utils_Network {
   /**
    * Try connecting to a TCP service; if it fails, retry. Repeat until serverStartupTimeOut elapses.
    *
+   * @param $host
+   * @param $port
    * @param int $serverStartupTimeOut seconds
    * @param float $interval seconds to wait in between pollings
+   *
    * @return bool TRUE if service is online
    */
   public static function waitForServiceStartup($host, $port, $serverStartupTimeOut, $interval = 0.333) {
@@ -78,4 +81,4 @@ class CRM_Utils_Network {
     error_reporting($old_error_reporting);
     return FALSE;
   }
-}
\ No newline at end of file
+}