Class: Dnsruby::SelectThread::QuerySettings
- Inherits:
-
Object
- Object
- Dnsruby::SelectThread::QuerySettings
- Defined in:
- lib/dnsruby/select_thread.rb
Instance Attribute Summary collapse
-
#authentication_error ⇒ Object
Returns the value of attribute authentication_error.
-
#cache_scope ⇒ Object
Returns the value of attribute cache_scope.
-
#client_query_id ⇒ Object
Returns the value of attribute client_query_id.
-
#client_queue ⇒ Object
Returns the value of attribute client_queue.
-
#dest_port ⇒ Object
Returns the value of attribute dest_port.
-
#dest_server ⇒ Object
Returns the value of attribute dest_server.
-
#disable_edns ⇒ Object
Returns the value of attribute disable_edns.
-
#endtime ⇒ Object
Returns the value of attribute endtime.
-
#ignore_truncation ⇒ Object
Returns the value of attribute ignore_truncation.
-
#is_persistent_socket ⇒ Object
Returns the value of attribute is_persistent_socket.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query_bytes ⇒ Object
Returns the value of attribute query_bytes.
-
#retire_connection ⇒ Object
Returns the value of attribute retire_connection.
-
#send_token ⇒ Object
Returns the value of attribute send_token.
-
#single_resolver ⇒ Object
Returns the value of attribute single_resolver.
-
#socket ⇒ Object
Returns the value of attribute socket.
-
#tcp_pipelining_max_queries ⇒ Object
Returns the value of attribute tcp_pipelining_max_queries.
-
#transport_configuration ⇒ Object
Returns the value of attribute transport_configuration.
-
#udp_packet_size ⇒ Object
Returns the value of attribute udp_packet_size.
Instance Method Summary collapse
-
#initialize(*args) ⇒ QuerySettings
constructor
new(query_bytes, query, ignore_truncation, client_queue, client_query_id, socket, dest_server, dest_port, endtime, , udp_packet_size, single_resolver).
- #no_tcp ⇒ Object
- #tcp_idle_timeout ⇒ Object
Constructor Details
#initialize(*args) ⇒ QuerySettings
new(query_bytes, query, ignore_truncation, client_queue, client_query_id, socket, dest_server, dest_port, endtime, , udp_packet_size, single_resolver)
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/dnsruby/select_thread.rb', line 161 def initialize(*args) @query_bytes = args[0] @query = args[1] @ignore_truncation=args[2] @client_queue = args[3] @client_query_id = args[4] @socket = args[5] @dest_server = args[6] @dest_port=args[7] @endtime = args[8] @udp_packet_size = args[9] @single_resolver = args[10] @is_persistent_socket = false @tcp_pipelining_max_queries = nil @send_token = SendToken.new @retire_connection = false @disable_edns = false end |
Instance Attribute Details
#authentication_error ⇒ Object
Returns the value of attribute authentication_error.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def authentication_error @authentication_error end |
#cache_scope ⇒ Object
Returns the value of attribute cache_scope.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def cache_scope @cache_scope end |
#client_query_id ⇒ Object
Returns the value of attribute client_query_id.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def client_query_id @client_query_id end |
#client_queue ⇒ Object
Returns the value of attribute client_queue.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def client_queue @client_queue end |
#dest_port ⇒ Object
Returns the value of attribute dest_port.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def dest_port @dest_port end |
#dest_server ⇒ Object
Returns the value of attribute dest_server.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def dest_server @dest_server end |
#disable_edns ⇒ Object
Returns the value of attribute disable_edns.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def disable_edns @disable_edns end |
#endtime ⇒ Object
Returns the value of attribute endtime.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def endtime @endtime end |
#ignore_truncation ⇒ Object
Returns the value of attribute ignore_truncation.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def ignore_truncation @ignore_truncation end |
#is_persistent_socket ⇒ Object
Returns the value of attribute is_persistent_socket.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def is_persistent_socket @is_persistent_socket end |
#query ⇒ Object
Returns the value of attribute query.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def query @query end |
#query_bytes ⇒ Object
Returns the value of attribute query_bytes.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def query_bytes @query_bytes end |
#retire_connection ⇒ Object
Returns the value of attribute retire_connection.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def retire_connection @retire_connection end |
#send_token ⇒ Object
Returns the value of attribute send_token.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def send_token @send_token end |
#single_resolver ⇒ Object
Returns the value of attribute single_resolver.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def single_resolver @single_resolver end |
#socket ⇒ Object
Returns the value of attribute socket.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def socket @socket end |
#tcp_pipelining_max_queries ⇒ Object
Returns the value of attribute tcp_pipelining_max_queries.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def tcp_pipelining_max_queries @tcp_pipelining_max_queries end |
#transport_configuration ⇒ Object
Returns the value of attribute transport_configuration.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def transport_configuration @transport_configuration end |
#udp_packet_size ⇒ Object
Returns the value of attribute udp_packet_size.
155 156 157 |
# File 'lib/dnsruby/select_thread.rb', line 155 def udp_packet_size @udp_packet_size end |
Instance Method Details
#no_tcp ⇒ Object
180 181 182 |
# File 'lib/dnsruby/select_thread.rb', line 180 def no_tcp transport_configuration ? transport_configuration[:no_tcp] : single_resolver.no_tcp end |
#tcp_idle_timeout ⇒ Object
184 185 186 |
# File 'lib/dnsruby/select_thread.rb', line 184 def tcp_idle_timeout transport_configuration ? transport_configuration[:tcp_idle_timeout] : single_resolver.tcp_idle_timeout end |