Definition at line 30 of file Protocol.php.
◆ _connect()
Connect to the specified timeserver.
- Returns
- void
- Exceptions
-
Definition at line 96 of file Protocol.php.
98 $socket = @
fsockopen($this->_timeserver, $this->_port, $errno, $errstr,
100 if ($socket ===
false) {
102 "'$this->_timeserver' on port '$this->_port', reason: '$errstr'");
105 $this->_socket = $socket;
fsockopen(&$errorNumber, &$errorMessage)
◆ _disconnect()
Disconnects from the peer, closes the socket.
- Returns
- void
Definition at line 113 of file Protocol.php.
115 @fclose($this->_socket);
116 $this->_socket =
null;
◆ _extract()
Abstract method that extracts the binary data returned from the timeserver
- Parameters
-
string | array | $data | Data returned from the timeserver |
- Returns
- integer
◆ _prepare()
Abstract method that prepares the data to send to the timeserver
- Returns
- mixed
◆ _read()
Abstract method that reads the data returned from the timeserver
- Returns
- mixed
◆ _write()
Abstract method that writes data to to the timeserver
- Parameters
-
- Returns
- void
◆ getDate()
getDate |
( |
|
$locale = null | ) |
|
Query this timeserver without using the fallback mechanism
- Parameters
-
- Returns
- Zend_Date
Definition at line 140 of file Protocol.php.
145 $date =
new Zend_Date($this,
null, $locale);
◆ getInfo()
Return information sent/returned from the timeserver
- Returns
- array
Definition at line 124 of file Protocol.php.
126 if (empty($this->_info) ===
true) {
◆ $_exceptions
◆ $_info
◆ $_socket
◆ $_timeserver
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/TimeSync/Protocol.php