projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some more bug fixes (linkable version now)
[PHP-P10.git]
/
Uplink
/
Client.class.php
diff --git
a/Uplink/Client.class.php
b/Uplink/Client.class.php
index c7ecc4cf40440bf942ccac22cd9d0003288a8510..8a38610dba6870d5fa961f8c9acb6073b5df6da0 100644
(file)
--- a/
Uplink/Client.class.php
+++ b/
Uplink/Client.class.php
@@
-107,7
+107,7
@@
class Client {
while(($line = @fgets($this->socket)) != null) {
$line=trim($line);
if(!empty($line)) {
while(($line = @fgets($this->socket)) != null) {
$line=trim($line);
if(!empty($line)) {
-
if(DEBUG_RAW)
echo"[recv] ".$line."\n";
+ echo"[recv] ".$line."\n";
$this->traffic['in'] += strlen($line);
$lines[] = $line;
if(count($lines) >= self::CLIENT_RECV_MAX_LINES) break;
$this->traffic['in'] += strlen($line);
$lines[] = $line;
if(count($lines) >= self::CLIENT_RECV_MAX_LINES) break;
@@
-120,7
+120,7
@@
class Client {
public function send($line, $newline = "\r\n") {
if($this->socket == null) return;
public function send($line, $newline = "\r\n") {
if($this->socket == null) return;
-
if(DEBUG_RAW)
echo"[send] ".$line."\n";
+ echo"[send] ".$line."\n";
$this->traffic['out'] += strlen($line);
fwrite($this->socket,$line.$newline);
}
$this->traffic['out'] += strlen($line);
fwrite($this->socket,$line.$newline);
}