SocketCollection
final class SocketCollection implements Countable
Methods
new(ConfiguresSocketConnection $connection, EncodesPacket $packetEncoder, EncodesNameValuePair $nameValuePairEncoder)
No description
array
getSocketIdsByResources(array $resources)
No description
getByResource(resource $resource)
No description
void
remove(int $socketId)
No description
Socket|null
bool
hasBusySockets()
No description
array
getBusySockets()
No description
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.
array
collectResources()
No description
int
count()
No description
bool
isEmpty()
No description
Details
at line 29
Socket
new(ConfiguresSocketConnection $connection, EncodesPacket $packetEncoder, EncodesNameValuePair $nameValuePairEncoder)
No description
at line 63
Socket
getById(int $socketId)
No description
at line 76
array
getSocketIdsByResources(array $resources)
No description
at line 94
Socket
getByResource(resource $resource)
No description
at line 124
void
remove(int $socketId)
No description
at line 129
Socket|null
getIdleSocket(ConfiguresSocketConnection $connection)
No description
at line 160
bool
hasBusySockets()
No description
at line 181
array
getBusySockets()
No description
at line 202
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 220
array
collectResources()
No description
at line 232
int
count()
No description
at line 237
bool
isEmpty()
No description