From: Tony Arcieri Date: 2013-01-31T14:22:29+09:00 Subject: Re: SSLSocket in non-blocking mode --f46d043c7acc08d8da04d48ed020 Content-Type: text/plain; charset=ISO-8859-1 Weird, they seem to be "documented" here instead. Seems bad: http://www.ruby-doc.org/gems/docs/o/openssl-nonblock-0.2.0/OpenSSL/SSL/SSLSocket.html#method-i-read_nonblock On Wed, Jan 30, 2013 at 9:05 PM, Brian Modra wrote: > Not according to this documentation: > > http://www.ruby-doc.org/stdlib-1.9.3/libdoc/openssl/rdoc/OpenSSL/SSL/SSLSocket.html > > ... but according to irb, yes! Thanks > > irb(main):015:0> sslsock.methods > => [:io, :context, :hostname, :hostname=, :sync_close, :sync_close=, > :to_io, :connect, :connect_nonblock, :accept, :accept_nonblock, > :sysread, :syswrite, :sysclose, :cert, :peer_cert, :peer_cert_chain, > :cipher, :state, :pending, :session_reused?, :session=, :verify_result, > :client_ca, :post_connection_check, :session, :addr, :peeraddr, > :setsockopt, :getsockopt, :fcntl, :closed?, :do_not_reverse_lookup=, > :sync, :sync=, :read, :readpartial, :read_nonblock, :gets, :each, > :each_line, :readlines, :readline, :getc, :each_byte, :readchar, > :ungetc, :eof?, :eof, :write, :write_nonblock, :<<, :puts, :print, > :printf, :flush, :close, :to_a, :entries, :sort, :sort_by, :grep, > :count, :find, :detect, :find_index, :find_all, :select, :reject, > :collect, :map, :flat_map, :collect_concat, :inject, :reduce, > :partition, :group_by, :first, :all?, :any?, :one?, :none?, :min, :max, > :minmax, :min_by, :max_by, :minmax_by, :member?, :include?, > :each_with_index, :reverse_each, :each_entry, :each_slice, :each_cons, > :each_with_object, :zip, :take, :take_while, :drop, :drop_while, :cycle, > :chunk, :slice_before, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, > :class, :singleton_class, :clone, :dup, :initialize_dup, > :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?, > :trust, :freeze, :frozen?, :to_s, :inspect, :methods, > :singleton_methods, :protected_methods, :private_methods, > :public_methods, :instance_variables, :instance_variable_get, > :instance_variable_set, :instance_variable_defined?, :instance_of?, > :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, > :respond_to_missing?, :extend, :display, :method, :public_method, > :define_singleton_method, :object_id, :to_enum, :enum_for, :==, :equal?, > :!, :!=, :instance_eval, :instance_exec, :__send__, :__id__] > > -- > Posted via http://www.ruby-forum.com/. > > -- Tony Arcieri --f46d043c7acc08d8da04d48ed020 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Weird, they seem to be "documented" here instead= . Seems bad:

http://www.ruby-doc.org/gems/docs/o/openssl-nonblock-0.2.0/OpenSSL/SSL/S= SLSocket.html#method-i-read_nonblock


O= n Wed, Jan 30, 2013 at 9:05 PM, Brian Modra <lists@ruby-forum.com= > wrote:
Not according to this documentation:
http://www.ruby-doc.org/stdlib-1.9.3= /libdoc/openssl/rdoc/OpenSSL/SSL/SSLSocket.html

... but according to irb, yes! Thanks

irb(main):015:0> sslsock.methods
=3D> [:io, :context, :hostname, :hostname=3D, :sync_close, :sync_close= =3D,
:to_io, :connect, :connect_nonblock, :accept, :accept_nonblock,
:sysread, :syswrite, :sysclose, :cert, :peer_cert, :peer_cert_chain,
:cipher, :state, :pending, :session_reused?, :session=3D, :verify_result, :client_ca, :post_connection_check, :session, :addr, :peeraddr,
:setsockopt, :getsockopt, :fcntl, :closed?, :do_not_reverse_lookup=3D,
:sync, :sync=3D, :read, :readpartial, :read_nonblock, :gets, :each,
:each_line, :readlines, :readline, :getc, :each_byte, :readchar,
:ungetc, :eof?, :eof, :write, :write_nonblock, :<<, :puts, :print, :printf, :flush, :close, :to_a, :entries, :sort, :sort_by, :grep,
:count, :find, :detect, :find_index, :find_all, :select, :reject,
:collect, :map, :flat_map, :collect_concat, :inject, :reduce,
:partition, :group_by, :first, :all?, :any?, :one?, :none?, :min, :max,
:minmax, :min_by, :max_by, :minmax_by, :member?, :include?,
:each_with_index, :reverse_each, :each_entry, :each_slice, :each_cons,
:each_with_object, :zip, :take, :take_while, :drop, :drop_while, :cycle, :chunk, :slice_before, :nil?, :=3D=3D=3D, :=3D~, :!~, :eql?, :hash, :<= =3D>,
:class, :singleton_class, :clone, :dup, :initialize_dup,
:initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?,
:trust, :freeze, :frozen?, :to_s, :inspect, :methods,
:singleton_methods, :protected_methods, :private_methods,
:public_methods, :instance_variables, :instance_variable_get,
:instance_variable_set, :instance_variable_defined?, :instance_of?,
:kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?,
:respond_to_missing?, :extend, :display, :method, :public_method,
:define_singleton_method, :object_id, :to_enum, :enum_for, :=3D=3D, :equal?= ,
:!, :!=3D, :instance_eval, :instance_exec, :__send__, :__id__]



--
= Tony Arcieri
--f46d043c7acc08d8da04d48ed020--