php教程

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

说明

面向对象风格 (method):

public Stomp::hasFrame ( void ) : bool

过程化风格:

stomp_has_frame ( resource $link ) : bool

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

参数

link

仅对过程化样式:由 stomp_connect() 返回的 stomp 连接标识符。

返回值

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

User Contributed Notes

ricks at panamax dot com 28-Sep-2016 05:54
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.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788