EventHttpConnection::setCloseCallback

EventHttpConnection::setCloseCallback

(PECL event >= 1.8.0)

EventHttpConnection::setCloseCallbackSet callback for connection close

Description

public void EventHttpConnection::setCloseCallback (  callable $callback  [,  mixed $data  ] )

Sets callback for connection close.

Parameters

callback

Callback which is called when connection is closed. Should match the following prototype:

登录查看完整内容