API Documentation

Zend/TimeSync/Sntp.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_TimeSync  
Version
$Id: Sntp.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_TimeSync_Sntp

Package: Zend\TimeSync

SNTP Protocol handling class

Parent(s)
\Zend_TimeSync_Protocol
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprivateinteger  $_delay= ''

Socket delay

Details
Type
integer
Propertyprotectedinteger  $_port= '37'

Port number for this timeserver

Default value37Details
Type
integer

Methods

methodpublic__construct( string $timeserver, integer $port ) : void

Class constructor, sets the timeserver and port number

Parameters
Name Type Description
$timeserver string

Timeserver to connect to

$port integer

Port of the timeserver when it differs from the default port

methodprotected_extract( string $result ) : integer

Extracts the data returned from the timeserver

Parameters
Name Type Description
$result string

Data to extract

Returns
Type Description
integer
methodprotected_prepare( ) : array

Prepares the data that will be send to the timeserver

Returns
Type Description
array
methodprotected_read( ) : string

Reads the data returned from the timeserver

Returns
Type Description
string
methodprotected_write( string $data ) : void

Writes data to to the timeserver

Parameters
Name Type Description
$data string

Data to write to the timeserver

Documentation was generated by DocBlox 0.15.1.