PHPDaemon\Network\IOStream::freezeInput PHP Method

freezeInput() public method

Freeze input
public freezeInput ( boolean $at_front = true ) : boolean
$at_front boolean At front. Default is true. If the front of a buffer is frozen, operations that drain data from the front of the buffer, or that prepend data to the buffer, will fail until it is unfrozen. If the back a buffer is frozen, operations that append data from the buffer will fail until it is unfrozen
return boolean Success
    public function freezeInput($at_front = true)
    {
        if (isset($this->bev)) {
            return $this->bev->input->freeze($at_front);
        }
        return false;
    }