120件ヒット
[101-120件を表示]
(0.078秒)
別のキーワード
検索結果
先頭2件
-
File
. pipe?(path) -> bool (12218.0) -
FileTest.#pipe? と同じです。
...FileTest.#pipe? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
IO
. select(reads , writes = [] , excepts = [] , timeout = nil) -> [[IO]] | nil (107.0) -
select(2) を実行します。
...nil を返します。
@param reads 入力待ちする IO オブジェクトの配列を渡します。
@param writes 出力待ちする IO オブジェクトの配列を渡します。
@param excepts 例外待ちする IO オブジェクトの配列を渡します。
@param timeout タイムア......敗した場合に発生します。
rp, wp = IO.pipe
mesg = "ping "
100.times{
rs, ws, = IO.select([rp], [wp])
if r = rs[0]
ret = r.read(5)
print ret
case ret
when /ping/
mesg = "pong\n"
when /pong/
mesg = "ping "
end
end
if w = ws[0]...