| @@ 132-139 (lines=8) @@ | ||
| 129 | * @param object $req |
|
| 130 | * @return void |
|
| 131 | */ |
|
| 132 | public function onInheritanceFromRequest($req) |
|
| 133 | { |
|
| 134 | $this->state = self::STATE_HEADERS; |
|
| 135 | $this->addr = $req->attrs->server['REMOTE_ADDR']; |
|
| 136 | $this->server = $req->attrs->server; |
|
| 137 | $this->get = $req->attrs->get; |
|
| 138 | $this->prependInput("\r\n"); |
|
| 139 | $this->onRead(); |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| @@ 460-467 (lines=8) @@ | ||
| 457 | $conn->onInheritance($this); |
|
| 458 | } |
|
| 459 | ||
| 460 | public function onInheritance($conn) |
|
| 461 | { |
|
| 462 | $this->server = $conn->server; |
|
| 463 | $this->cookie = $conn->cookie; |
|
| 464 | $this->get = $conn->get; |
|
| 465 | $this->state = self::STATE_PREHANDSHAKE; |
|
| 466 | $this->addr = $conn->addr; |
|
| 467 | $this->onRead(); |
|
| 468 | } |
|
| 469 | ||
| 470 | ||