\Yurun\Util\YurunHttp\Handler\ContractIConnectionManager

Summary

Methods
Constants
getConnection()
removeConnection()
closeConnection()
createConnection()
close()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getConnection()

getConnection(string  $host, integer  $port, boolean  $ssl) : mixed

获取连接

Parameters

string $host
integer $port
boolean $ssl

Returns

mixed

removeConnection()

removeConnection(string  $host, integer  $port, boolean  $ssl) : mixed|boolean

将指定连接从本管理器中移除,但不会关闭该连接

Parameters

string $host
integer $port
boolean $ssl

Returns

mixed|boolean

closeConnection()

closeConnection(string  $host, integer  $port, boolean  $ssl) : boolean

关闭指定连接

Parameters

string $host
integer $port
boolean $ssl

Returns

boolean

createConnection()

createConnection(string  $host, integer  $port, boolean  $ssl) : mixed

创建新连接,但不归本管理器管理

Parameters

string $host
integer $port
boolean $ssl

Returns

mixed

close()

close() : void

关闭连接管理器