210件ヒット
[1-100件を表示]
(0.037秒)
別のキーワード
ライブラリ
- ビルトイン (36)
-
net
/ ftp (72) -
net
/ http (24) -
rubygems
/ commands / lock _ command (12) - shell (30)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (24)
クラス
- Array (24)
- BasicSocket (12)
- File (12)
-
Gem
:: Commands :: LockCommand (12) -
Net
:: FTP (72) -
Net
:: HTTP (24) - Shell (30)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - UDPSocket (12)
キーワード
- cd (6)
- chdir (6)
- combination (12)
- flock (12)
- foreach (18)
- get (12)
- getbinaryfile (12)
- permutation (12)
- pushd (6)
- pushdir (6)
- put (12)
- putbinaryfile (12)
-
recvfrom
_ nonblock (12) -
recvmsg
_ nonblock (12) - retrbinary (12)
-
spec
_ path (12) - storbinary (12)
- unlock (12)
検索結果
先頭5件
- Net
:: HTTP # lock(path , body , initheader = nil) -> Net :: HTTPResponse - Gem
:: Commands :: LockCommand # spec _ path(gem _ full _ name) -> String - File
# flock(operation) -> 0 | false - BasicSocket
# recvmsg _ nonblock(maxmesglen=nil , flags=0 , maxcontrollen=nil , opts={}) -> [String , Addrinfo , Integer , *Socket :: AncillaryData] - Net
:: HTTP # unlock(path , body , initheader = nil) -> Net :: HTTPResponse
-
Net
:: HTTP # lock(path , body , initheader = nil) -> Net :: HTTPResponse (18242.0) -
サーバの path に LOCK リクエストを ヘッダを initheader, ボディを body として送ります。
...サーバの path に LOCK リクエストを
ヘッダを initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエストのボ......ディを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Lock... -
Gem
:: Commands :: LockCommand # spec _ path(gem _ full _ name) -> String (9107.0) -
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
...指定された Gem パッケージの gemspec ファイルのフルパスを返します。
@param gem_full_name Gem パッケージの名前を指定します。... -
File
# flock(operation) -> 0 | false (6309.0) -
ファイルをロックします。
...の取得に成功した場合は 0 を返します。
File::LOCK_NB (ノンブロッキング) を指定すると、本来ならブロックされる場合に
ブロックされずに false を返すようになります。
@param operation ロックに対する操作の種類を示す定数を指......い。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX operation に不正な整数を与えた場合などに発生します。
引数 operation に有効な定数は以下の通りです。定数は File::Constants で定義されていますが、
F......e クラスの親クラスの IO が File::Constants をインクルードしているので、
これらの定数は File::LOCK_SH などとして参照可能です。
: LOCK_SH
共有ロック。複数のプロセスが同時にロックを共有できます。
システムによってはロッ... -
BasicSocket
# recvmsg _ nonblock(maxmesglen=nil , flags=0 , maxcontrollen=nil , opts={}) -> [String , Addrinfo , Integer , *Socket :: AncillaryData] (6225.0) -
recvmsg(2) を用いてノンブロッキング方式でメッセージを受け取ります。
...ングの有無以外は BasicSocket#recvmsg と同じです。
詳しくはそちらを参照してください。
@param maxmesglen 受け取るメッセージの最大長
@param flags フラグ
@param maxcontrollen 受け取る補助データの最大長
@param opts ハッシュオプション... -
Net
:: HTTP # unlock(path , body , initheader = nil) -> Net :: HTTPResponse (6219.0) -
サーバの path に UNLOCK リクエストを ヘッダを initheader, ボディを body として送ります。
...サーバの path に UNLOCK リクエストを
ヘッダを initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエストの......ボディを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Unlock... -
Array
# combination(n) {|c| block } -> self (6207.0) -
サイズ n の組み合わせをすべて生成し、それを引数としてブロックを実行します。
...わせの順序は保証されません。ブロックなしで呼び出されると、組み合わせ
を生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した......3, 4]
a.combination(1).to_a #=> [[1],[2],[3],[4]]
a.combination(2).to_a #=> [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]]
a.combination(3).to_a #=> [[1,2,3],[1,2,4],[1,3,4],[2,3,4]]
a.combination(4).to_a #=> [[1,2,3,4]]
a.combination(0).to_a #=> [[]]: one combination of length 0
a.combination(5).to_a......#=> [] : no combinations of length 5
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3, 4]
result = []
a.combination(2) {|e| result << e} # => [1,2,3,4]
result #=> [[1,2... -
Array
# permutation(n = self . length) { |p| block } -> self (6207.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場......utation.to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
a.permutation(1).to_a #=> [[1],[2],[3]]
a.permutation(2).to_a #=> [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
a.permutation(3).to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
a.permutation(0).to_a #=> [[]]: one permutati......n of length 0
a.permutation(4).to_a #=> [] : no permutations of length 4
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.permutation(2) {|e| result <<... -
UDPSocket
# recvfrom _ nonblock(maxlen , flags=0) -> [String , Array] (6125.0) -
ソケットをノンブロッキングモードに設定した後、 recvfrom(2) でソケットからデータを受け取ります。
...す。
recvfrom(2) がエラーになった場合、
Errno::EAGAIN, Errno::EINTR を含め例外 Errno::EXXX が発生します。
Errno::EWOULDBLOCK、Errno::EAGAIN のような待ってからリトライすることが
可能であることを意味する例外には、IO::WaitReadable が extend......ddr.values_at(3,1))
s1.connect(*s2.addr.values_at(3,1))
s1.send "aaa", 0
begin # emulate blocking recvfrom
p s2.recvfrom_nonblock(10)
#=> ["aaa", ["AF_INET", 33302, "localhost.localdomain", "127.0.0.1"]]
rescue IO::WaitReadable
IO.select([s2])
retry
end
@param maxlen 受......け取るデータの最大バイト数
@param flags フラグ
@see IPSocket#recvfrom... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil (319.0) -
サーバ上のファイルを取得します。
...ストモードの
ときには blocksize は無視されます。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@param blocksize データ転送の単位をバ...