protected function send($s)
    {
        if (!$this->socket) {
            $this->createSocket();
        }

        if (!$this->socket) {
            return false;
        }

        $written = 0;
        while ($s != '') {
            $written = $this->write($s);
            if ($written === false) {
                throw new \Plop\Exception('Connection lost');
            }
            $s = (string) substr($s, $written);
        }
        return true;
    }
protected function send($s)
    {
        if (!$this->socket) {
            $this->createSocket();
        }

        if (!$this->socket) {
            return false;
        }

        $written = 0;
        while ($s != '') {
            $written = $this->write($s);
            if ($written === false) {
                throw new \Plop\Exception('Connection lost');
            }
            $s = (string) substr($s, $written);
        }
        return true;
    }
protected function send ( $ s ) { if ( ! $ this -> socket ) { $ this -> createSocket ( ) ; } if ( ! $ this -> socket ) { return false ; } $ written = 0 ; while ( $ s != '' ) { $ written = $ this -> write ( $ s ) ; if ( $ written === false ) { throw new \ Plop \ Exception ( 'Connection lost' ) ; } $ s = ( string ) substr ( $ s , $ written ) ; } return true ; }
Send the given string over the wire.

\param string $s
The text to send over.

\retval bool
Whether a connection could be established
and the data sent properly.

\throws Plop::Exception
The connection was lost during the transmission.
Send the given string over the wire .