SocketCollection
final class SocketCollection implements Countable
Methods
No description
No description
No description
No description
No description
No description
Returns the smallest stream select timeout of all sockets waiting for a response, so that none of them is checked less often than its connection is configured to.
No description
Only sockets that wait for a response can have a new one. An idle socket becomes readable as well, when the server closes its connection, but it only has the response that was already read.
No description
No description
Details
at line 28
Socket
new(ConfiguresSocketConnection $connection, EncodesPacket $packetEncoder, EncodesNameValuePair $nameValuePairEncoder)
No description
at line 59
Socket
getById(int $socketId)
No description
at line 72
array
getSocketIdsByResources(array $resources)
No description
at line 97
Socket
getByResource(resource $resource)
No description
at line 125
void
remove(int $socketId)
No description
at line 130
Socket|null
getIdleSocket(ConfiguresSocketConnection $connection)
No description
at line 161
bool
hasBusySockets()
No description
at line 182
array
getBusySockets()
No description
at line 203
int
getStreamSelectTimeout()
Returns the smallest stream select timeout of all sockets waiting for a response, so that none of them is checked less often than its connection is configured to.
at line 221
array
collectResources()
No description
at line 239
array
collectResourcesOfBusySockets()
Only sockets that wait for a response can have a new one. An idle socket becomes readable as well, when the server closes its connection, but it only has the response that was already read.
at line 254
int
count()
No description
at line 259
bool
isEmpty()
No description