るりまサーチ

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

別のキーワード

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

クラス

モジュール

キーワード

検索結果

Socket::Constants::TCP_INFO -> Integer (18.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 (18.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] (8.0)

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

...り値は
不定です。

require 'socket'

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

# Check the connected client is myself or not.
next if euid != Process.uid

# do something about my resource.
ensure
s.close...