213件ヒット
[201-213件を表示]
(0.107秒)
種類
- インスタンスメソッド (165)
- 変数 (22)
- 定数 (22)
- 文書 (4)
クラス
- BasicSocket (11)
-
RSS
:: ImageFaviconModel :: ImageFavicon (22) -
RSS
:: ImageItemModel :: ImageItem (22) -
RSS
:: RDF :: Channel :: ImageFavicon (22) -
RSS
:: RDF :: Image (22) -
RSS
:: RDF :: Item (22) -
RSS
:: RDF :: Textinput (22) -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic (22) - Socket (11)
モジュール
- Kernel (22)
-
Socket
:: Constants (11)
キーワード
-
$ CHILD _ STATUS (11) -
$ LAST _ MATCH _ INFO (11) -
NEWS for Ruby 3
. 0 . 0 (4) -
TCP
_ INFO (22) - about= (77)
- getpeereid (11)
検索結果
-
BasicSocket
# getpeereid -> [Integer , Integer] (6106.0) -
Unix ドメインソケットにおいて接続相手の euid と egid を 返します。
...Unix ドメインソケットにおいて接続相手の euid と egid を
返します。
配列の最初の要素が euid, 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.
next if euid != Process.uid
# do something about my resource.
ensure
s.close
end
}... -
NEWS for Ruby 3
. 0 . 0 (12.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting......single rest argument and no keywords.
16166
//emlist[][ruby]{
pr = proc{|*a, **kw| [a, kw]}
pr.call([1])
# 2.7 => [[1], {}]
# 3.0 => [[[1]], {}]
pr.call([1, {a: 1}])
# 2.7 => [[1], {:a=>1}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}
* Arguments forwarding (`...`) now supports leadin......ded, which returns the name of the symbol if it is named. The returned string is frozen. 16150
* Fiber
* Introduce Fiber.set_scheduler for intercepting blocking operations and Fiber.scheduler for accessing the current scheduler. See rdoc-ref:fiber.md for more details about what operations ar...