mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 05:04:51 +08:00
[MOD] add global function -> getAllFdByConnectType 根据连接类型获取所有fd.
This commit is contained in:
parent
aae79aacb5
commit
86a0e1a2ca
@ -288,6 +288,16 @@ function bot() {
|
||||
}
|
||||
}
|
||||
|
||||
function getAllFdByConnectType(string $type = 'default'): array
|
||||
{
|
||||
$fd = [];
|
||||
foreach (ManagerGM::getAllByName($type) as $ConnectionObjectObj) {
|
||||
array_push($fd, $ConnectionObjectObj->getFd());
|
||||
}
|
||||
return $fd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user