@@ 129-136 (lines=8) @@ | ||
126 | * @param object $req |
|
127 | * @return void |
|
128 | */ |
|
129 | public function onInheritanceFromRequest($req) { |
|
130 | $this->state = self::STATE_HEADERS; |
|
131 | $this->addr = $req->attrs->server['REMOTE_ADDR']; |
|
132 | $this->server = $req->attrs->server; |
|
133 | $this->get = $req->attrs->get; |
|
134 | $this->prependInput("\r\n"); |
|
135 | $this->onRead(); |
|
136 | } |
|
137 | ||
138 | /** |
|
139 | * Sends a frame. |
|
@@ 436-443 (lines=8) @@ | ||
433 | $conn->onInheritance($this); |
|
434 | } |
|
435 | ||
436 | public function onInheritance($conn) { |
|
437 | $this->server = $conn->server; |
|
438 | $this->cookie = $conn->cookie; |
|
439 | $this->get = $conn->get; |
|
440 | $this->state = self::STATE_PREHANDSHAKE; |
|
441 | $this->addr = $conn->addr; |
|
442 | $this->onRead(); |
|
443 | } |
|
444 | ||
445 | ||
446 | /** |