private function send($data) { if ($this->use_header) { $data = pack('N', strlen($data)) . $data; } fwrite($this->s, $data); }