36件ヒット
[1-36件を表示]
(0.016秒)
種類
- 定数 (24)
- インスタンスメソッド (12)
クラス
- BasicSocket (12)
- Socket (12)
モジュール
-
Socket
:: Constants (12)
キーワード
-
TCP
_ INFO (24) - getpeereid (12)
検索結果
先頭3件
-
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...