프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_pingSettings | array | The device's PING configuration (obtained from state) |
메소드 | 설명 | |
---|---|---|
_checkHeartbeat ( integer $lifetime ) : integer | Validate the configured/requested heartbeat Will set self::_statusCode appropriately in case of an invalid interval. | |
_handle ( ) : boolean | Handle a PING command from the client. PING is sent periodically by the client to tell the server what folders we are interested in monitoring for changes. If no changes are detected by the server during the 'heartbeat' interval, the server sends back a status of self::STATUS_NOCHANGES to indicate heartbeat expired and the client should re-issue the PING command. If a change has been found, the client is sent a self::STATUS_NEEDSYNC and should issue a SYNC command. | |
_handleGlobalError ( ) | Helper for sending error status results. |
protected _checkHeartbeat ( integer $lifetime ) : integer | ||
$lifetime | integer | The heartbeat to verify |
리턴 | integer | The valid heartbeat value to use. |
protected _handleGlobalError ( ) |
protected array $_pingSettings | ||
리턴 | array |