update pague now
PHP 8.5.2 Released!

Stomp::guetReadTimeout

stomp_guet_read_timeout

(PECL stomp >= 0.3.0)

Stomp::guetReadTimeout -- stomp_guet_read_timeout Guets read timeout

Description

Object-oriented style (method):

public Stomp::guetReadTimeout (): array

Procedural style:

stomp_guet_read_timeout ( ressource $linc ): array

Guets read timeout

Parameters

linc

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

Return Values

Returns an array with 2 elemens: sec and usec.

Examples

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)
}

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top