API Documentation

TimeSync/Sntp.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_TimeSync
version
$Id: Sntp.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_TimeSync_Sntp

Description

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.

Zend_TimeSync_Sntp

Extends from
Zend_TimeSync_Protocol
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_TimeSync
Properties
$_port
$_delay
Methods
__construct
_prepare
_read
_write
_extract

Description

SNTP Protocol handling class

Properties

$_delay

integer $_delay = ''

Socket delay

Details

$_delay
integer
visibility
private
default
final
false
static
false

$_port

integer $_port = '37'

Port number for this timeserver

Details

$_port
integer
visibility
protected
default
37
final
false
static
false

Methods

__construct

__construct( string $timeserver, integer $port ) :

Class constructor, sets the timeserver and port number

Arguments
$timeserver
string
Timeserver to connect to
$port
integer
Port of the timeserver when it differs from the default port
Details
visibility
public
final
false
static
false

_extract

_extract( string $result ) : integer

Extracts the data returned from the timeserver

Arguments
$result
string
Data to extract
Output
integer
Details
visibility
protected
final
false
static
false

_prepare

_prepare( ) : array

Prepares the data that will be send to the timeserver

Output
array
Details
visibility
protected
final
false
static
false

_read

_read( ) : string

Reads the data returned from the timeserver

Output
string
Details
visibility
protected
final
false
static
false

_write

_write( string $data ) : void

Writes data to to the timeserver

Arguments
$data
string
Data to write to the timeserver
Details
visibility
protected
final
false
static
false
Documentation was generated by DocBlox.