src/LineIO.php
public function setSocket($socket)
    {
        $this->socket          = $socket;
        $this->incomingData    = "";
        $this->rcvQueue        = array();
        $this->sndQueue        = array();
    }
public function setSocket($socket)
    {
        $this->socket          = $socket;
        $this->incomingData    = "";
        $this->rcvQueue        = array();
        $this->sndQueue        = array();
    }
public function setSocket ( $ socket ) { $ this -> socket = $ socket ; $ this -> incomingData = "" ; $ this -> rcvQueue = array ( ) ; $ this -> sndQueue = array ( ) ; }
Sets the socket this line reader operates on.

\param resource $socket
The socket this reader will use from now on.
Sets the socket this line reader operates on .