public function setOption($level, $optname, $optval)
    {
        $ret = @socket_set_option($this->resource, $level, $optname, $optval);
        if ($ret === false) {
            throw Exception::createFromSocketResource($this->resource);
        }
        return $this;
    }
public function setOption($level, $optname, $optval)
    {
        $ret = @socket_set_option($this->resource, $level, $optname, $optval);
        if ($ret === false) {
            throw Exception::createFromSocketResource($this->resource);
        }
        return $this;
    }
public function setOption ( $ level , $ optname , $ optval ) { $ ret = @ socket_set_option ( $ this -> resource , $ level , $ optname , $ optval ) ; if ( $ ret === false ) { throw Exception :: createFromSocketResource ( $ this -> resource ) ; } return $ this ; }
set socket option

@param int   $level
@param int   $optname
@param mixed $optval
@return self $this (chainable)
@throws Exception on error
@see self::getOption()
@uses socket_set_option()
set socket option