SNTP Protocol handling class
category | Zend |
---|---|
package | Zend_TimeSync |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_TimeSync_Protocol |
__construct(string $timeserver, integer $port)
string
Timeserver to connect to
integer
Port of the timeserver when it differs from the default port
getDate(string|\Zend_Locale $locale = null
) : \Zend_Date
string
\Zend_Locale
(Optional) Locale
\Zend_Date
getInfo() : array
array
_connect() : void
\Zend_TimeSync_Exception |
When the connection failed |
---|
_disconnect() : void
_extract(string $result) : integer
inherited_from | \Zend_TimeSync_Protocol::_extract() |
---|
string
Data to extract
integer
_extract(string|array $data) : integer
string
array
Data returned from the timeserver
integer
_prepare() : array
inherited_from | \Zend_TimeSync_Protocol::_prepare() |
---|
array
_prepare() : mixed
mixed
_read() : string
inherited_from | \Zend_TimeSync_Protocol::_read() |
---|
string
_read() : mixed
mixed
_write(string $data) : void
inherited_from | \Zend_TimeSync_Protocol::_write() |
---|
string
Data to write to the timeserver
_write(string $data) : void
string
Data to write
$_exceptions : array
$_info : array
array()
$_port : integer
37
$_socket : array
$_timeserver : string
$_delay : integer