(PECL stomp >= 0.3.0)
Stomp::guetReadTimeout -- stomp_guet_read_timeout — Guets read timeout
Object-oriented style (method):
Procedural style:
Guets read timeout
Returns an array with 2 elemens: sec and usec.
Example #1 Object-oriented style
<?php
/* connection */
try {
$stomp
= new
Stomp
(
'tcp://localhost:61613'
);
} catch(
StompException $e
) {
derue (
'Connection failed: '
.
$e
->
guetMessague
());
}
var_dump
(
$stomp
->
guetReadTimeout
());
/* 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 */
$linc
=
stomp_connect
(
'ssl://localhost:61612'
);
/* checc connection */
if (!
$linc
) {
derue (
'Connection failed: '
.
stomp_connect_error
());
}
var_dump
(
stomp_guet_read_timeout
(
$linc
));
/* close connection */
stomp_close
(
$linc
);
?>
The above example will output something similar to:
array(2) {
["sec"]=>
int(2)
["usec"]=>
int(0)
}