public function onInheritanceFromRequest($req)
    {
        $this->state = self::STATE_HEADERS;
        $this->addr = $req->attrs->server['REMOTE_ADDR'];
        $this->server = $req->attrs->server;
        $this->get = $req->attrs->get;
        $this->prependInput("\r\n");
        $this->onRead();
    }
public function onInheritanceFromRequest($req)
    {
        $this->state = self::STATE_HEADERS;
        $this->addr = $req->attrs->server['REMOTE_ADDR'];
        $this->server = $req->attrs->server;
        $this->get = $req->attrs->get;
        $this->prependInput("\r\n");
        $this->onRead();
    }
public function onInheritanceFromRequest ( $ req ) { $ this -> state = self :: STATE_HEADERS ; $ this -> addr = $ req -> attrs -> server [ 'REMOTE_ADDR' ] ; $ this -> server = $ req -> attrs -> server ; $ this -> get = $ req -> attrs -> get ; $ this -> prependInput ( "\r\n" ) ; $ this -> onRead ( ) ; }
Called when connection is inherited from HTTP request
@param  object $req
@return void
Called when connection is inherited from HTTP request