protected function receiveBody()
    {
        if(strlen($this->bufferData) >= $this->waitingFor)
        {
            $this->messages[] = substr($this->bufferData,0,$this->waitingFor);
            $this->bufferData = substr($this->bufferData,$this->waitingFor);
            $this->headerReceived = false;
            return strlen($this->bufferData) > 0;
        }
        return false;
    }
protected function receiveBody()
    {
        if(strlen($this->bufferData) >= $this->waitingFor)
        {
            $this->messages[] = substr($this->bufferData,0,$this->waitingFor);
            $this->bufferData = substr($this->bufferData,$this->waitingFor);
            $this->headerReceived = false;
            return strlen($this->bufferData) > 0;
        }
        return false;
    }
protected function receiveBody ( ) { if ( strlen ( $ this -> bufferData ) >= $ this -> waitingFor ) { $ this -> messages [ ] = substr ( $ this -> bufferData , 0 , $ this -> waitingFor ) ; $ this -> bufferData = substr ( $ this -> bufferData , $ this -> waitingFor ) ; $ this -> headerReceived = false ; return strlen ( $ this -> bufferData ) > 0 ; } return false ; }
Try to read the number of bytes given from header into message
On success the next operation is receiveHeader
@return bool
Try to read the number of bytes given from header into message On success the next operation is receiveHeader