Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > socketライブラリ > Socket::Optionクラス
クラス・モジュールの継承リスト: Socket::Option < Object < Kernel < BasicObject
BasicSocket#getsockopt、BasicSocket#setsockopt で使うソケットオプションの値を表すクラス。
ソケットオプションの具体的な意味は自身の使っているシステムのドキュメントを見てください。
定義 | 説明 | |
---|---|---|
bool(family, level, optname, boolean) -> Socket::Option
|
整数をデータとして持つ Socket::Option オブジェクト新たに生成し返します。 |
|
int(family, level, optname, integer) -> Socket::Option
|
整数をデータとして持つ Socket::Option オブジェクト新たに生成し返します。 |
|
linger(onoff, secs) -> Socket::Option
|
SOL_SOCKET/SO_LINGER 用の Socket::Option オブジェクトを新たに生成し返します。 |
|
new(family, level, optname, data) -> Socket::Option
|
Socket::Option オブジェクト新たに生成し返します。 |
定義 | 説明 | |
---|---|---|
bool -> bool
|
オプションのデータ(内容)を真偽値に変換して返します。 |
|
data -> String
|
オプションのデータ(内容)を文字列で返します。 |
|
family -> Integer
|
ソケットファミリを表す整数を返します。 |
|
int -> Integer
|
オプションのデータ(内容)を整数に変換して返します。 |
|
level -> Integer
|
ソケットオプションレベルを表す整数を返します。 |
|
linger -> [bool, Integer]
|
オプションが SOL_SOCKET/SO_LINGER である場合に、オプションのデータ(内容)を真偽値と整数のペアとして返します。 |
|
optname -> Integer
|
ソケットのオプション名を表す整数を返します。 |
|
unpack(template) -> Array
|
data に対し String#unpack を呼び出し、その結果を返します。 |
!
!=
__id__
__send__
instance_eval
instance_exec
method_missing
singleton_method_added
singleton_method_removed
singleton_method_undefined
!~
<=>
==
===
=~
_dump
class
clone
define_singleton_method
display
enum_for
eql?
equal?
extend
freeze
frozen?
hash
initialize
initialize_copy
inspect
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
itself
marshal_dump
marshal_load
method
methods
nil?
object_id
pretty_inspect
pretty_print
pretty_print_cycle
pretty_print_inspect
pretty_print_instance_variables
private_methods
protected_methods
psych_to_yaml
public_method
public_methods
public_send
remove_instance_variable
respond_to?
respond_to_missing?
send
singleton_class
singleton_method
singleton_methods
taint
tainted?
tap
then
to_a
to_ary
to_hash
to_int
to_io
to_proc
to_regexp
to_str
trust
untaint
untrust
untrusted?
.yaml_tag
::ARGF
::ARGV
::DATA
::ENV
::FALSE
::NIL
::RUBY_COPYRIGHT
::RUBY_DESCRIPTION
::RUBY_ENGINE
::RUBY_ENGINE_VERSION
::RUBY_PATCHLEVEL
::RUBY_PLATFORM
::RUBY_RELEASE_DATE
::RUBY_REVISION
::RUBY_VERSION
::SCRIPT_LINES__
::STDERR
::STDIN
::STDOUT
::TOPLEVEL_BINDING
::TRUE