Class: Dnsruby::SelectThread::QuerySettings

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsruby/select_thread.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)


100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/dnsruby/select_thread.rb', line 100

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
end

Instance Attribute Details

#client_query_idObject

Returns the value of attribute client_query_id.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def client_query_id
  @client_query_id
end

#client_queueObject

Returns the value of attribute client_queue.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def client_queue
  @client_queue
end

#dest_portObject

Returns the value of attribute dest_port.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def dest_port
  @dest_port
end

#dest_serverObject

Returns the value of attribute dest_server.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def dest_server
  @dest_server
end

#endtimeObject

Returns the value of attribute endtime.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def endtime
  @endtime
end

#ignore_truncationObject

Returns the value of attribute ignore_truncation.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def ignore_truncation
  @ignore_truncation
end

#is_persistent_socketObject

Returns the value of attribute is_persistent_socket.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def is_persistent_socket
  @is_persistent_socket
end

#queryObject

Returns the value of attribute query.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def query
  @query
end

#query_bytesObject

Returns the value of attribute query_bytes.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def query_bytes
  @query_bytes
end

#single_resolverObject

Returns the value of attribute single_resolver.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def single_resolver
  @single_resolver
end

#socketObject

Returns the value of attribute socket.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def socket
  @socket
end

#tcp_pipelining_max_queriesObject

Returns the value of attribute tcp_pipelining_max_queries.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def tcp_pipelining_max_queries
  @tcp_pipelining_max_queries
end

#udp_packet_sizeObject

Returns the value of attribute udp_packet_size.



95
96
97
# File 'lib/dnsruby/select_thread.rb', line 95

def udp_packet_size
  @udp_packet_size
end