public function __construct($max = 10, $saveSuccess = false, $readDataLen = 1024, $timeout = 3) { $this->max = $max; $this->saveSuccess = $saveSuccess; $this->readDataLen = $readDataLen; $this->timeout = $timeout; }