/**
  * PersistentClientSocket constructor.
  *
  * @param string|null $persistentKey Key in php persistent storage to allow multiple persistent
  *                                   connections to the same host [a-zA-Z0-9_-]
  */
 public function __construct($persistentKey = null)
 {
     parent::__construct();
     $this->persistentKey = $persistentKey;
 }
예제 #2
0
 /**
  * AcceptedSocket constructor.
  *
  * @param resource $acceptedResource Accepted client socket
  */
 public function __construct($acceptedResource)
 {
     parent::__construct();
     $this->acceptedResource = $acceptedResource;
 }