るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.010秒)
トップページ > クエリ:==[x] > クラス:Addrinfo[x]

別のキーワード

  1. _builtin ==
  2. openssl ==
  3. rexml/document ==
  4. matrix ==
  5. == _builtin

ライブラリ

キーワード

検索結果

Addrinfo#afamily -> Integer (7.0)

アドレスファミリーを整数で返します。

...アドレスファミリーを整数で返します。

require 'socket'

Addrinfo
.tcp("localhost", 80).afamily == Socket::AF_INET #=> true...

Addrinfo#pfamily -> Integer (7.0)

プロトコルファミリーを整数で返します。

...プロトコルファミリーを整数で返します。

require 'socket'

Addrinfo
.tcp("localhost", 80).pfamily == Socket::PF_INET #=> true...

Addrinfo#protocol -> Integer (7.0)

ソケットプロトコルを整数で返します。

...ソケットプロトコルを整数で返します。

require 'socket'

Addrinfo
.tcp("localhost", 80).protocol == Socket::IPPROTO_TCP #=> true...

Addrinfo#socktype -> Integer (7.0)

ソケットタイプを整数で返します。

...ソケットタイプを整数で返します。

require 'socket'

Addrinfo
.tcp("localhost", 80).socktype == Socket::SOCK_STREAM #=> true...