クラス
- Addrinfo (66)
- BasicSocket (22)
- OptionParser (132)
-
Resolv
:: DNS :: Resource :: IN :: WKS (33) - Socket (583)
- UNIXSocket (22)
-
WEBrick
:: CGI (11)
モジュール
-
CGI
:: QueryExtension (11) -
DRb
:: DRbProtocol (11) -
Socket
:: Constants (506)
キーワード
-
AF
_ DATAKIT (22) -
AF
_ DEC (22) -
AF
_ IPX (22) -
AF
_ LAT (22) -
AF
_ NS (22) -
AF
_ PPP (22) -
AF
_ ROUTE (22) -
AF
_ SIP (22) -
AF
_ SNA (22) - DRbProtocol (11)
-
EAI
_ PROTOCOL (22) -
IPPROTO
_ AH (22) -
IPPROTO
_ BIP (22) -
IPPROTO
_ DSTOPTS (22) -
IPPROTO
_ EGP (22) -
IPPROTO
_ EON (22) -
IPPROTO
_ ESP (22) -
IPPROTO
_ FRAGMENT (22) -
IPPROTO
_ GGP (22) -
IPPROTO
_ HELLO (22) -
IPPROTO
_ HOPOPTS (22) -
IPPROTO
_ ICMP (22) -
IPPROTO
_ ICMPV6 (22) -
IPPROTO
_ IDP (22) -
IPPROTO
_ IGMP (22) -
IPPROTO
_ IP (22) -
IPPROTO
_ IPV6 (22) -
IPPROTO
_ ND (22) -
IPPROTO
_ NONE (22) -
IPPROTO
_ PUP (22) -
IPPROTO
_ RAW (22) -
IPPROTO
_ ROUTING (22) -
IPPROTO
_ TCP (22) -
IPPROTO
_ TP (22) -
IPPROTO
_ UDP (22) -
IPPROTO
_ XTP (22) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
PF
_ DATAKIT (22) -
PF
_ DEC (22) -
PF
_ IPX (22) -
PF
_ LAT (22) -
PF
_ NS (22) -
PF
_ PPP (22) -
PF
_ ROUTE (22) -
PF
_ SIP (22) -
PF
_ SNA (22) -
PF
_ XTP (22) -
SO
_ PRIORITY (22) -
add
_ protocol (11) - bitmap (11)
- cgi (11)
- foreach (22)
- getaddrinfo (22)
- getifaddrs (11)
- getservbyport (11)
- ip (11)
-
local
_ address (11) - new (44)
- on (132)
- open (11)
- pair (22)
-
remote
_ address (11) -
ruby 1
. 6 feature (11) -
server
_ protocol (11) - socketpair (22)
- xmlrpc (3)
検索結果
先頭5件
-
Resolv
:: DNS :: Resource :: IN :: WKS # protocol -> Integer (27301.0) -
IPプロトコル番号を返します。
IPプロトコル番号を返します。
例えば 6 は TCP に対応します。 -
Addrinfo
# protocol -> Integer (24307.0) -
ソケットプロトコルを整数で返します。
...ソケットプロトコルを整数で返します。
require 'socket'
Addrinfo.tcp("localhost", 80).protocol == Socket::IPPROTO_TCP #=> true... -
DRb
:: DRbProtocol . # add _ protocol(prot) -> () (18401.0) -
新たなプロトコルを DRbProtocol モジュールに登録します。
...新たなプロトコルを DRbProtocol モジュールに登録します。
@param prot プロトコル定義クラス... -
DRb
:: DRbProtocol (15024.0) -
drb で使われる通信プロトコルを取り扱うモジュールです。
...drb で使われる通信プロトコルを取り扱うモジュールです。
通常ユーザが使うことはないでしょうが、drb の
ための新しい通信手段を定義したい場合には
このモジュールを使う必要があります。
通信手段を定義したクラス......を DRb::DRbProtocol.#add_protocol で
drb に登録することで、追加ができます。
デフォルトでは DRbTCPSocket クラスを用い、druby://... という
URI を指定することで TCP/IP で通信します。
通信プロトコルを追加する例としては、
例として......す。DRbMessage#send_request を呼び出して通信オブジェクトが
保持しているストリームにデータを送る、というのが最も簡単なこのメソッドの
実装法です。
: recv_reply
サーバからリプライを受け取り、[success-boolean, reply-value]... -
Socket
:: Constants :: SO _ PRIORITY -> Integer (12332.0) -
The protocol-defined priority for all packets on this socket。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...The protocol-defined priority for all packets on this socket。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see socket(7linux), ip(7linux)... -
Socket
:: SO _ PRIORITY -> Integer (12332.0) -
The protocol-defined priority for all packets on this socket。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...The protocol-defined priority for all packets on this socket。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see socket(7linux), ip(7linux)... -
CGI
:: QueryExtension # server _ protocol -> String (12317.0) -
ENV['SERVER_PROTOCOL'] を返します。
...ENV['SERVER_PROTOCOL'] を返します。... -
Socket
:: Constants :: EAI _ PROTOCOL -> Integer (12317.0) -
Resolved protocol is unknown
...Resolved protocol is unknown
getaddrinfo(3), getnameinfo(3) などの
エラーコードです。
対応する Socket.getaddrinfo, Addrinfo.getaddrinfo などは
エラーを SocketError に変換するため、この定数は直接は利用しません。
@see getaddrinfo(3linux), gai_strerror(3f......reebsd)... -
Socket
:: EAI _ PROTOCOL -> Integer (12317.0) -
Resolved protocol is unknown
...Resolved protocol is unknown
getaddrinfo(3), getnameinfo(3) などの
エラーコードです。
対応する Socket.getaddrinfo, Addrinfo.getaddrinfo などは
エラーを SocketError に変換するため、この定数は直接は利用しません。
@see getaddrinfo(3linux), gai_strerror(3f......reebsd)... -
BasicSocket
# remote _ address -> Addrinfo (12312.0) -
getpeername(2) で得られたリモートアドレス情報を Addrinfo オブジェクトとして返します。
...tpeername(2) で得られたリモートアドレス情報を
Addrinfo オブジェクトとして返します。
返されたオブジェクトの Addrinfo#protocol は 0 を
返すことに注意してください。
require 'socket'
TCPSocket.open("www.ruby-lang.org", 80) {|s|
p s.remo......te_address #=> #<Addrinfo: 221.186.184.68:80 TCP>
}
TCPServer.open("127.0.0.1", 1728) {|serv|
c = TCPSocket.new("127.0.0.1", 1728)
s = serv.accept
p s.remote_address #=> #<Addrinfo: 127.0.0.1:36504 TCP>
}
@see BasicSocket#getpeername...