470件ヒット
[1-100件を表示]
(0.047秒)
ライブラリ
- ビルトイン (36)
- e2mmap (18)
-
fiddle
/ import (24) -
irb
/ cmd / nop (36) -
irb
/ extend-command (60) - json (36)
- monitor (24)
- open-uri (92)
- openssl (48)
- optparse (12)
- socket (48)
クラス
- IO (24)
-
IRB
:: ExtendCommand :: Nop (36) - Object (12)
-
OpenSSL
:: SSL :: SSLSocket (24) - Socket (24)
- UDPSocket (12)
- UNIXServer (12)
モジュール
- Exception2MessageMapper (18)
-
Fiddle
:: Importer (24) -
IRB
:: ContextExtender (24) -
IRB
:: ExtendCommandBundle (24) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) - Kernel (16)
- MonitorMixin (12)
-
OpenSSL
:: Buffering (24) - OpenURI (24)
-
OpenURI
:: OpenRead (36) - URI (16)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Arguable (12)
- ContextExtender (12)
- Fail (6)
- MonitorMixin (12)
-
OVERRIDE
_ PRIVATE _ ONLY (12) - Raise (6)
-
accept
_ nonblock (24) - bind (12)
-
connect
_ nonblock (24) -
def
_ extend _ command (12) - execute (12)
-
extend
_ object (6) -
install
_ extend _ commands (12) -
irb
/ completion (12) -
irb
_ context (24) -
json
_ create (12) -
mon
_ enter (12) - new (12)
- open (56)
-
open
_ uri (24) - read (12)
-
read
_ nonblock (24) -
recvfrom
_ nonblock (24) -
ruby 1
. 6 feature (12) -
singleton
_ methods (12) - union (12)
-
write
_ nonblock (24)
検索結果
先頭5件
-
JSON
:: Ext :: Generator :: GeneratorMethods :: String :: Extend (21016.0) -
Alias of JSON::Generator::GeneratorMethods::String::Extend
...Alias of JSON::Generator::GeneratorMethods::String::Extend... -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (21000.0) -
String に JSON で使用する特異メソッドを追加するためのモジュールです。
...String に JSON で使用する特異メソッドを追加するためのモジュールです。... -
OpenSSL
:: SSL :: SSLSocket # connect _ nonblock -> self (12206.0) -
ノンブロッキング方式で TLS/SSL 通信をクライアントモードとして開始し、 サーバとのハンドシェイクを実行します。
...る場合には IO::WaitReadable を、
書き込み可能状態を待つ必要がある場合には IO::WaitWritable を、
それぞれ extend した例外オブジェクトが生成されます。
@see OpenSSL::SSL::SSLSocket#accept_nonblock,
OpenSSL::SSL::SSLSocket#connect... -
Socket
# connect _ nonblock(server _ sockaddr) -> 0 (12206.0) -
ソケットをノンブロッキングモードに設定した後、 connect(2) を呼び出します。
...定した後、
connect(2) を呼び出します。
引数、返り値は Socket#connect と同じです。
connect が EINPROGRESS エラーを報告した場合、その例外(Errno::EINPROGRESS)
には IO::WaitWritable が Object#extend されます。
これを connect_nonblock をリトライ......Constants
socket = Socket.new(AF_INET, SOCK_STREAM, 0)
sockaddr = Socket.sockaddr_in(80, 'www.google.com')
begin # emulate blocking connect
socket.connect_nonblock(sockaddr)
rescue IO::WaitWritable
IO.select(nil, [socket]) # wait 3-way handshake completion
begin
socket.conn......ect_nonblock(sockaddr) # check connection failure
rescue Errno::EISCONN
end
end
socket.write("GET / HTTP/1.0\r\n\r\n")
results = socket.read
@param server_sockaddr 接続先アドレス
@raise Errno::EXXX connect(2) がエラーを報告した場合に発生します。詳しくは... -
IRB
:: ContextExtender . install _ extend _ commands -> object (12113.0) -
定義済みの拡張を読み込みます。
...:Context で以下のメソッドが利用できるようになります。
* eval_history=
* use_tracer=
* math_mode=
* use_loader=
* save_history=
irb/extend-command が require された時にライブラリ内部で自動的
に実行されます。
@see IRB::ContextExtender.def_extend_c... -
IRB
:: ContextExtender . def _ extend _ command(cmd _ name , load _ file , *aliases) -> object (12101.0) -
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。
...IRB::Context に cmd_name で指定したメソッドが実行できるように拡張
します。
@param cmd_name メソッド名を Symbol で指定します。
IRB::Context クラスのインスタンスメソッドとして定
義してある必要がありま... -
JSON
:: Generator :: GeneratorMethods :: String :: Extend . json _ create(hash) -> String (12100.0) -
JSON のオブジェクトから Ruby の文字列を生成して返します。
...JSON のオブジェクトから Ruby の文字列を生成して返します。
@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。
require 'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "A... -
IRB
:: ContextExtender (12000.0) -
IRB::Context を拡張するためのモジュールです。
...IRB::Context を拡張するためのモジュールです。... -
IRB
:: ExtendCommand :: Nop # irb _ context -> IRB :: Context (9200.0) -
irb の現在の設定(IRB::Context)を返します。
...irb の現在の設定(IRB::Context)を返します。...