for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Async sockets
*
* @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace AsyncSockets\Socket;
* Class SelectContext
class SelectContext
{
* List os sockets ready to read
* @var StreamResourceInterface[]
private $read;
* List of sockets ready to write
private $write;
* array
* @var array
private $oob;
* Constructor
* @param StreamResourceInterface[] $read List of ready to read sockets
* @param StreamResourceInterface[] $write List of ready to write sockets
* @param StreamResourceInterface[] $oob List of sockets having OOB data
public function __construct(array $read, array $write, array $oob)
$this->read = $read;
$this->write = $write;
$this->oob = $oob;
}
* Get ready to read sockets
* @return StreamResourceInterface[]
public function getRead()
return $this->read;
* Get ready to write sockets
public function getWrite()
return $this->write;
* Return sockets having OOB data
public function getOob()
return $this->oob;