2件ヒット
[1-2件を表示]
(0.109秒)
クラス
検索結果
-
Addrinfo
# protocol -> Integer (54625.0) -
ソケットプロトコルを整数で返します。
ソケットプロトコルを整数で返します。
require 'socket'
Addrinfo.tcp("localhost", 80).protocol == Socket::IPPROTO_TCP #=> true -
Resolv
:: DNS :: Resource :: IN :: WKS # protocol -> Integer (54607.0) -
IPプロトコル番号を返します。
IPプロトコル番号を返します。
例えば 6 は TCP に対応します。