PHP 7.1.0 Release Candidate 3 Released

Stomp::hasFrame

stomp_has_frame

(PECL stomp >= 0.1.0)

Stomp::hasFrame -- stomp_has_frameIndicates whether or not there is a frame ready to read

Descrizione

Stile orientato agli oggetti (method):

public bool Stomp::hasFrame ( void )

Stile procedurale:

bool stomp_has_frame ( resource $link )

Indicates whether or not there is a frame ready to read.

Elenco dei parametri

link

Solo stile procedurale: l'identificatore di connessione stomp restituito da stomp_connect().

Valori restituiti

Returns TRUE if a frame is ready to read, or FALSE otherwise.

add a note add a note

User Contributed Notes 1 note

up
0
ricks at panamax dot com
1 day ago
Be aware that this function/method will block the caller, unless a frame is currently ready to be read. The duration of the block is the currently set read timeout.

The installation default for PECL Stomp read timeout is two seconds. Unless the associated ini file has been modified to override this value, or you have used the "set read timeout" function/method, the block time will be two seconds.
To Top