public function send($data, $newline = true) {
        if (!$this->_sock) { throw new SocketClientException("Connection unexpectedly closed!"); }
        if ($newline) { $data = $data.$this->retcarriage; }
        if (! $wr = fwrite($this->_sock, $data)) {
            throw new SocketClientException('Error while sending data!');
        }
        return $wr;
    }