るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.009秒)

別のキーワード

  1. rss about
  2. rss about=
  3. imagefavicon about
  4. imagefavicon about=
  5. item about

クラス

モジュール

キーワード

検索結果

Socket::Constants::TCP_INFO -> Integer (55.0)

Retrieve information about this socket。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Retrieve information about this socket
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see tcp(4freebsd), tcp(7linux)...

Socket::TCP_INFO -> Integer (55.0)

Retrieve information about this socket。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Retrieve information about this socket
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see tcp(4freebsd), tcp(7linux)...

BasicSocket#getpeereid -> [Integer, Integer] (25.0)

Unix ドメインソケットにおいて接続相手の euid と egid を 返します。

..., 2番目の要素が egid です。

ソケットが Unix ドメインソケットでない場合の返り値は
不定です。

require 'socket'

Socket
.unix_server_loop("/tmp/sock") {|s|
begin
euid, egid = s.getpeereid

# Check the connected client is myself or not....