- Timestamp:
- 2006/11/13 14:43:10 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/module/Net/Socket.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/module/Net/Socket.php
r6916 r8269 448 448 $line = ''; 449 449 $timeout = time() + $this->timeout; 450 451 $fp = $this->fp; 452 while (($c =@fgets($fp, $this->lineLength))!==false && (!$this->timeout || time() < $timeout)) { 453 $line .= $c; 454 if (substr($line, -1) == "\n") { 455 return rtrim($line, "\r\n"); 456 } 457 sfprintr("Socket"); 458 sfprintr($line); 459 } 460 461 462 /* 450 463 while (!feof($this->fp) && (!$this->timeout || time() < $timeout)) { 451 464 $line .= @fgets($this->fp, $this->lineLength); … … 454 467 } 455 468 } 469 */ 456 470 return $line; 457 471 } 458 472 459 473 /** 460 474 * Read until the socket closes, or until there is no more data in
Note: See TracChangeset
for help on using the changeset viewer.
