PHPDaemon\Servers\Socks\SlaveConnection::onRead PHP Method

onRead() public method

Called when new data received.
public onRead ( ) : void
return void
    public function onRead()
    {
        if (!$this->client) {
            return;
        }
        do {
            $this->client->writeFromBuffer($this->bev->input, $this->bev->input->length);
        } while ($this->bev->input->length > 0);
    }