るりまサーチ

最速Rubyリファレンスマニュアル検索!
9720件ヒット [1-100件を表示] (0.134秒)
トップページ > クエリ:-[x] > クエリ:r[x] > ライブラリ:socket[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Socket::Constants::SO_PRIORITY -> Integer (12318.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 (12318.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)...

BasicSocket#remote_address -> Addrinfo (12308.0)

getpeername(2) で得られたリモートアドレス情報を Addrinfo オブジェクトとして返します。

...tpeername(2) で得られたリモートアドレス情報を
Addrinfo オブジェクトとして返します。

返されたオブジェクトの Addrinfo#protocol は 0 を
返すことに注意してください。

r
equire '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...

Socket::Constants::IPPROTO_ROUTING -> Integer (12302.0)

BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。

...BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。

また、Socket.open の protocol 引数に渡す利用法もあります。

@see 2292...

Socket::Constants::IP_RECVRETOPTS -> Integer (12302.0)

@todo Receive all IP options for response

...@todo
R
eceive all IP options for response...

絞り込み条件を変える

Socket::Constants::SO_RECVUCRED -> Integer (12302.0)

@todo Receive user credentials with datagram。

...@todo
R
eceive user credentials with datagram。...

Socket::IPPROTO_ROUTING -> Integer (12302.0)

BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。

...BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。

また、Socket.open の protocol 引数に渡す利用法もあります。

@see 2292...

Socket::IP_RECVRETOPTS -> Integer (12302.0)

@todo Receive all IP options for response

...@todo
R
eceive all IP options for response...

Socket::SO_RECVUCRED -> Integer (12302.0)

@todo Receive user credentials with datagram。

...@todo
R
eceive user credentials with datagram。...

Addrinfo#family_addrinfo(host, port) -> Addrinfo (9314.0)

引数から自身に「似た」Addrinfo オブジェクトを生成します。

...」Addrinfo オブジェクトを生成します。

「似た」の意味はプロトコルファミリ、ソケットタイプ、プロトコルが
同じことを意味します。

r
equire 'socket'

Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("www.ruby-lang.org", 80)
#=> #<Addrinfo: 221....
...(www.ruby-lang.org:80)>

Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2")
#=> #<Addrinfo: /tmp/sock2 SOCK_STREAM>

@param host ホスト(IP アドレスもしくはホスト名)
@param port ポート番号(整数)もしくはサービス名(文字列)
@param path Unix domain socket...

絞り込み条件を変える

<< 1 2 3 ... > >>