るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.226秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:t[x] > クエリ:<[x] > クラス:Net::POP3[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

検索結果

Net::POP3#set_debug_output(f) -> () (6249.0)

デバッグ用の出力 f をセットします。

... << メソッドを持っているオブジェクトでなければなりません。

使用例:

r
equire 'net/pop'

pop = Net::POP3.new('pop.example.com', 110)
pop.set_debug_output $stderr
pop.start('YourAccount', 'YourPassword') {
p pop.n_bytes
}

実行結果:

POP session starte...
...d: pop.example.com:110 (POP)
-
> "+OK popd <1162042773.26346.155555a1861c@pop.example.com>\r\n"
<
- "APOP YourAccount XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n"
-
> "+OK\r\n"
<
- "STAT\r\n"
-
> "+OK 37 339936\r\n"
339936
<
- "QUIT\r\n"
-
> "+OK\r\n"...