public function send($line, $newline = "\r\n") {
if($this->socket == null) return;
echo"[send] ".utf8_decode($line)."\n";
$this->traffic['out'] += strlen($line);
fwrite($this->socket,$line.$newline);
}
public function send($line, $newline = "\r\n") {
if($this->socket == null) return;
echo"[send] ".utf8_decode($line)."\n";
$this->traffic['out'] += strlen($line);
fwrite($this->socket,$line.$newline);
}