Lines Matching refs:fsock
193 public $fsock;
1222 $this->fsock = $host;
1341 if (!is_resource($this->fsock)) {
1346 $this->fsock = @fsockopen($this->host, $this->port, $errno, $errstr, $this->curTimeout == 0 ? 100000 : $this->curTimeout);
1347 if (!$this->fsock) {
1364 fputs($this->fsock, $this->identifier . "\r\n");
1375 while (!feof($this->fsock) && !preg_match('#(.*)^(SSH-(\d\.\d+).*)#ms', $data, $matches)) {
1382 $read = [$this->fsock];
1394 $temp = stream_get_line($this->fsock, 255, "\n");
1420 if (feof($this->fsock)) {
1455 fputs($this->fsock, $this->identifier . "\r\n");
3366 return ($this->bitmap & self::MASK_CONNECTED) && is_resource($this->fsock) && !feof($this->fsock);
3507 if (!is_resource($this->fsock)) {
3508 throw new \InvalidArgumentException('fsock is not a resource.');
3510 $read = [$this->fsock];
3554 if (!is_resource($this->fsock) || feof($this->fsock)) {
3567 stream_set_timeout($this->fsock, $sec, $usec);
3569 $raw = stream_get_contents($this->fsock, $this->decrypt_block_size);
3593 $tag = stream_get_contents($this->fsock, $this->decrypt_block_size);
3616 $tag = stream_get_contents($this->fsock, 16);
3677 $hmac = stream_get_contents($this->fsock, $this->hmac_size);
3795 $temp = stream_get_contents($this->fsock, $remaining_length);
3796 if ($temp === false || feof($this->fsock)) {
4280 if (!is_resource($this->fsock) || feof($this->fsock)) {
4396 $sent = @fputs($this->fsock, $packet);
4639 if (is_resource($this->fsock) && get_resource_type($this->fsock) === 'stream') {
4640 fclose($this->fsock);