| @@ 303-305 (lines=3) @@ | ||
| 300 | $flags |
|
| 301 | ); |
|
| 302 | ||
| 303 | if ($this->bev) { |
|
| 304 | $this->bev->setCallbacks([$this, 'onReadEv'], [$this, 'onWriteEv'], [$this, 'onStateEv']); |
|
| 305 | } |
|
| 306 | $this->ssl = true; |
|
| 307 | } else { |
|
| 308 | $this->log('unsupported type of context: ' . ($this->ctx ? get_class($this->ctx) : 'undefined')); |
|
| @@ 311-319 (lines=9) @@ | ||
| 308 | $this->log('unsupported type of context: ' . ($this->ctx ? get_class($this->ctx) : 'undefined')); |
|
| 309 | return; |
|
| 310 | } |
|
| 311 | } else { |
|
| 312 | $this->bev = $this->eventLoop->bufferEvent( |
|
| 313 | $this->fd, |
|
| 314 | $flags, |
|
| 315 | [$this, 'onReadEv'], |
|
| 316 | [$this, 'onWriteEv'], |
|
| 317 | [$this, 'onStateEv'] |
|
| 318 | ); |
|
| 319 | } |
|
| 320 | if (!$this->bev) { |
|
| 321 | return; |
|
| 322 | } |
|