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 89
Socket
getByResource(resource $resource)
No description
at line 117
void
remove(int $socketId)
No description
at line 122
Socket|null
getIdleSocket(ConfiguresSocketConnection $connection)
No description
at line 153
bool
hasBusySockets()
No description
at line 174
array
getBusySockets()
No description
at line 195
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 213
array
collectResources()
No description
at line 231
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 246
int
count()
No description
at line 251
bool
isEmpty()
No description