public function shutdown($how = 2)
    {
        $ret = @socket_shutdown($this->resource, $how);
        if ($ret === false) {
            throw Exception::createFromSocketResource($this->resource);
        }
        return $this;
    }
public function shutdown($how = 2)
    {
        $ret = @socket_shutdown($this->resource, $how);
        if ($ret === false) {
            throw Exception::createFromSocketResource($this->resource);
        }
        return $this;
    }
public function shutdown ( $ how = 2 ) { $ ret = @ socket_shutdown ( $ this -> resource , $ how ) ; if ( $ ret === false ) { throw Exception :: createFromSocketResource ( $ this -> resource ) ; } return $ this ; }
shuts down socket for receiving, sending or both

@param int $how 0 = shutdown reading, 1 = shutdown writing, 2 = shutdown reading and writing
@return self $this (chainable)
@throws Exception on error
@see self::close()
@uses socket_shutdown()
shuts down socket for receiving sending or both