@@ 136-143 (lines=8) @@ | ||
133 | * @param object $req |
|
134 | * @return void |
|
135 | */ |
|
136 | public function onInheritanceFromRequest($req) |
|
137 | { |
|
138 | $this->state = self::STATE_HEADERS; |
|
139 | $this->addr = $req->attrs->server['REMOTE_ADDR']; |
|
140 | $this->server = $req->attrs->server; |
|
141 | $this->get = $req->attrs->get; |
|
142 | $this->prependInput("\r\n"); |
|
143 | $this->onRead(); |
|
144 | } |
|
145 | ||
146 | /** |
|
@@ 467-474 (lines=8) @@ | ||
464 | $conn->onInheritance($this); |
|
465 | } |
|
466 | ||
467 | public function onInheritance($conn) |
|
468 | { |
|
469 | $this->server = $conn->server; |
|
470 | $this->cookie = $conn->cookie; |
|
471 | $this->get = $conn->get; |
|
472 | $this->state = self::STATE_PREHANDSHAKE; |
|
473 | $this->addr = $conn->addr; |
|
474 | $this->onRead(); |
|
475 | } |
|
476 | ||
477 |