public function onReadEv($bev)
    {
        if (!$this->ready) {
            $this->wRead = true;
            return;
        }
        if ($this->finished) {
            return;
        }
        try {
            $this->onRead();
        } catch (\Exception $e) {
            Daemon::uncaughtExceptionHandler($e);
        }
    }
public function onReadEv($bev)
    {
        if (!$this->ready) {
            $this->wRead = true;
            return;
        }
        if ($this->finished) {
            return;
        }
        try {
            $this->onRead();
        } catch (\Exception $e) {
            Daemon::uncaughtExceptionHandler($e);
        }
    }
public function onReadEv ( $ bev ) { if ( ! $ this -> ready ) { $ this -> wRead = true ; return ; } if ( $ this -> finished ) { return ; } try { $ this -> onRead ( ) ; } catch ( \ Exception $ e ) { Daemon :: uncaughtExceptionHandler ( $ e ) ; } }
Called when the connection has got new data
@param  object $bev EventBufferEvent
@return void
Called when the connection has got new data