pfamily -> Integer[permalink][rdoc]-
プロトコルファミリーを整数で返します。
require 'socket' Addrinfo.tcp("localhost", 80).pfamily == Socket::PF_INET #=> true
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
pfamily -> Integer[permalink][rdoc]プロトコルファミリーを整数で返します。
require 'socket'
Addrinfo.tcp("localhost", 80).pfamily == Socket::PF_INET #=> true