IT. Expert System.

PHP

Gets read timeout


Stomp::getReadTimeout

stomp_get_read_timeout

(PECL stomp >= 0.3.0)

Stomp::getReadTimeout -- stomp_get_read_timeoutGets read timeout

Description

Object oriented style (method):

public array Stomp::getReadTimeout ( void )

Procedural style:

array stomp_get_read_timeout ( resource $link )

Gets read timeout

Parameters

link

Procedural style only: The stomp link identifier returned by stomp_connect().

Return Values

Returns an array with 2 elements: sec and usec.

Examples

Example #1 Object oriented style

<?php

/* connection */
try {
    
$stomp = new Stomp('tcp://localhost:61613');
} catch(
StompException $e) {
    die(
'Connection failed: ' $e->getMessage());
}

var_dump($stomp->getReadTimeout());

/* close connection */
unset($stomp);

?>

The above example will output something similar to:

 array(2) { ["sec"]=> int(2) ["usec"]=> int(0) } 

Example #2 Procedural style

<?php

/* connection */
$link stomp_connect('ssl://localhost:61612');

/* check connection */
if (!$link) {
    die(
'Connection failed: ' stomp_connect_error());
}

var_dump(stomp_get_read_timeout($link));

/* close connection */
stomp_close($link);

?>

The above example will output something similar to:

 array(2) { ["sec"]=> int(2) ["usec"]=> int(0) } 



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 176 / 158679187. Delta: 0.03016 с