Class: ROM::LDAP::Socket Private
- Inherits:
-
Object
- Object
- ROM::LDAP::Socket
- Extended by:
- Initializer
- Defined in:
- lib/rom/ldap/socket.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Builds either TCP or UNIX.
Instance Attribute Summary collapse
-
#buffered ⇒ Boolean
readonly
Default: true.
- #host ⇒ Integer readonly
- #path ⇒ String readonly
-
#retry_count ⇒ Boolean
readonly
Default: true.
-
#write_timeout ⇒ Integer
readonly
Default: 10.
Instance Method Summary collapse
Instance Attribute Details
#buffered ⇒ Boolean (readonly)
Returns default: true.
81 |
# File 'lib/rom/ldap/socket.rb', line 81 option :buffered, type: Types::Strict::Bool, reader: :private, default: -> { true } |
#host ⇒ Integer (readonly)
42 |
# File 'lib/rom/ldap/socket.rb', line 42 option :host, type: Types::Strict::String, reader: :private, optional: true |
#path ⇒ String (readonly)
36 |
# File 'lib/rom/ldap/socket.rb', line 36 option :path, type: Types::Strict::String, reader: :private, optional: true |
#retry_count ⇒ Boolean (readonly)
Returns default: true.
69 |
# File 'lib/rom/ldap/socket.rb', line 69 option :retry_count, type: Types::Strict::Integer, reader: :private, default: -> { 3 } |
#write_timeout ⇒ Integer (readonly)
Returns default: 10.
63 |
# File 'lib/rom/ldap/socket.rb', line 63 option :write_timeout, type: Types::Strict::Integer, reader: :private, default: -> { 10 } |
Instance Method Details
#call ⇒ ::Socket, ::OpenSSL::SSL::SSLSocket
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
85 86 87 88 89 90 91 92 |
# File 'lib/rom/ldap/socket.rb', line 85 def call socket.do_not_reverse_lookup = true socket.sync = buffered socket.setsockopt(:SOCKET, :KEEPALIVE, keep_alive) socket.setsockopt(:TCP, :NODELAY, buffered) unless path connect! end |