ライブラリ
- ビルトイン (206)
-
irb
/ cmd / help (12) -
irb
/ extend-command (12) - logger (24)
- matrix (24)
- mkmf (24)
-
net
/ ftp (12) -
net
/ http (24) -
net
/ imap (48) -
net
/ smtp (48) - openssl (60)
- pathname (12)
- rake (12)
-
rubygems
/ package / tar _ input (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ specification (24) -
rubygems
/ user _ interaction (24) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (60)
- tsort (23)
クラス
-
Gem
:: Package :: TarInput (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: Specification (24) -
Gem
:: StreamUI (12) - IPSocket (12)
-
IRB
:: ExtendCommand :: Help (12) - LocalJumpError (24)
- Logger (24)
- Matrix (24)
- Module (12)
-
Net
:: FTP (12) -
Net
:: HTTP (24) -
Net
:: IMAP (36) -
Net
:: IMAP :: Envelope (12) -
Net
:: SMTP (48) -
OpenSSL
:: X509 :: ExtensionFactory (60) - Pathname (12)
-
Rake
:: FileList (12) - Range (16)
-
RubyVM
:: InstructionSequence (10) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (24)
- String (24)
- ThreadGroup (12)
- Time (12)
- TracePoint (48)
- UDPSocket (12)
- UNIXSocket (12)
モジュール
- Enumerable (48)
-
Gem
:: UserInteraction (12) -
IRB
:: ExtendCommandBundle (12) - Kernel (24)
- TSort (23)
キーワード
- append (12)
-
choose
_ from _ list (24) -
convertible
_ int (24) -
create
_ ext _ from _ array (12) -
create
_ ext _ from _ hash (12) -
create
_ ext _ from _ string (12) -
create
_ extension (24) - debug (24)
- disable (24)
- each (12)
-
each
_ strongly _ connected _ component _ from (23) - enable (24)
- enclose (12)
- encode! (24)
-
excluded
_ from _ list? (12) - execute (12)
-
exit
_ value (12) -
get
_ proxy _ from _ env (12) - include (12)
-
install
_ alias _ method (12) -
load
_ gemspec (12) -
loaded
_ from (12) -
loaded
_ from= (12) - mailfrom (12)
-
max
_ by (48) - minor (24)
-
proxy
_ from _ env= (12) -
proxy
_ from _ env? (12) - reason (12)
- recvfrom (36)
-
recvfrom
_ nonblock (24) -
relative
_ path _ from (12) - rename (30)
-
reverse
_ each (2) - search (12)
-
send
_ mail (12) - sendmail (12)
- size (1)
- step (1)
- strftime (12)
-
to
_ binary (10) -
uid
_ search (12)
検索結果
先頭5件
-
Net
:: SMTP # sendmail(mailsrc , from _ addr , *to _ addrs) -> () (6222.0) -
メールを送信します。
...メールを送信します。
mailsrc をメールとして送信します。
mailsrc は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。
from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に......'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr 送信元のメールア......ーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラーコード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に... -
IRB
:: ExtendCommandBundle # install _ alias _ method(to , from , override = NO _ OVERRIDE) (6208.0) -
メソッドのエイリアスを定義します。ライブラリ内部で使用します。
...l か文字列で指定します。
@param from 元のメソッド名を Symbol か文字列で指定します。
@param override 新しいメソッド名が定義済みであった場合にそのメソッドを
上書きするかどうかを
IRB::ExtendCommandBundl......e::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_ONLY、
IRB::ExtendCommandBundle::OVERRIDE_ALL のいずれか
で指定します。... -
Net
:: HTTP # proxy _ from _ env=(boolean) (6208.0) -
プロクシ情報を環境変数から得るかどうかを指定します。
...プロクシ情報を環境変数から得るかどうかを指定します。
Net::HTTP#start で接続する前に設定する必要があります。
@param boolean プロクシ情報を環境変数から得るかどうかを指定する真偽値
@see Net::HTTP#proxy_from_env?... -
Net
:: HTTP # proxy _ from _ env? -> bool (6208.0) -
プロクシ情報を環境変数から得る場合に true を返します。
....start の proxy_address
引数に :ENV を渡した場合に true になります。
環境変数 http_proxy が定義されていなくともこの値は true を返します。
その場合にはプロクシは利用されず直接サーバに接続します。
@see Net::HTTP#proxy_from_env=... -
Gem
:: RemoteFetcher # get _ proxy _ from _ env -> URI | nil (6202.0) -
環境変数にセットされている HTTP proxy の情報を取得して返します。
環境変数にセットされている HTTP proxy の情報を取得して返します。
ここでチェックしている環境変数は以下の通りです。
* http_proxy
* http_proxy_user
* http_proxy_pass
* HTTP_PROXY
* HTTP_PROXY_USER
* HTTP_PROXY_PASS -
IPSocket
# recvfrom(maxlen , flags = 0) -> Array (6201.0) -
recv と同様にソケットからデータを受け取りますが、 戻り値は文字列と相手ソケットのアドレス (形式は IPSocket#addr 参照) のペアです。引数につ いては BasicSocket#recv と同様です。
...数につ
いては BasicSocket#recv と同様です。
@param maxlen 受け取る文字列の最大の長さを指定します。
@param flags recv(2) を参照してください。
@raise IOError
@raise Errno::EXXX recvfrom(2) がエラーになった場合などに発生します。
例:......s1 = UDPSocket.new
s1.bind("0.0.0.0", 0) # 適当に空いている port を割り当てる
s2 = UDPSocket.new
s2.send("foo", 0, s1.getsockname)
mesg, inet_addr = s1.recvfrom(100)
p mesg #=> "foo"
p inet_addr #=> ["AF_INET", 32876, "localhost.localdomain", "127.0.0.1"]... -
Socket
# recvfrom(maxlen , flags=0) -> [String , Addrinfo] (6201.0) -
ソケットからデータを受け取ります。
...が返されます。
flags には Socket::MSG_* という定数の bitwise OR を渡します。
詳しくは recvfrom(2) を参照してください。
@param maxlen ソケットから受けとるデータの最大値
@param flags フラグ
@raise Errno::EXXX recvfrom(2) がエラーを報告し......w(Socket::AF_INET, Socket::SOCK_DGRAM, 0)
s1.bind(Socket.sockaddr_in(0, "0.0.0.0"))
s2.send("foo", 0, s1.getsockname)
mesg, sockaddr = s1.recvfrom(10)
p mesg #=> "foo"
p sockaddr #=> "\002\000\200r\177\000\000\001\000\000\00... -
UNIXSocket
# recvfrom(maxlen , flags = 0) -> [String [String , String]] (6201.0) -
recvfrom(2) を用いてソケットからメッセージを受け取ります。
...recvfrom(2) を用いてソケットからメッセージを受け取ります。
maxlen で受け取るメッセージの最大長をバイト数で指定します。
flags には Socket::MSG_* という名前の定数の bitwise OR を渡します。
戻り値は文字列と相手ソケット......のパスのペアです。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
c = UNIXSocket.open("/tmp/s")
s = serv.accept
s.send "a", 0
p c.recvfrom(10)[0] #=> "a"
}
@param maxlen 受け取るメッセージの最大長
@param flags フラグ... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) (6117.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
...Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are pas......to the
compiler using the +type+ name, in uppercase.
* 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X'
is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP,
where 'TYP' is the +type+ name in uppercase with replacing '_t'
suffix with 'T', followed by '=X' w......ert +type+ to +Integer+ object, and vice versa.
For example, if foobar_t is defined as unsigned long, then
convertible_int("foobar_t") would return "unsigned long", and define
macros:
#define TYPEOF_FOOBAR_T unsigned long
#define FOOBART2NUM ULONG2NUM
#define NUM2FOOBART NUM2ULONG... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) { . . . } (6117.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
...Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are pas......to the
compiler using the +type+ name, in uppercase.
* 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X'
is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP,
where 'TYP' is the +type+ name in uppercase with replacing '_t'
suffix with 'T', followed by '=X' w......ert +type+ to +Integer+ object, and vice versa.
For example, if foobar_t is defined as unsigned long, then
convertible_int("foobar_t") would return "unsigned long", and define
macros:
#define TYPEOF_FOOBAR_T unsigned long
#define FOOBART2NUM ULONG2NUM
#define NUM2FOOBART NUM2ULONG...