Class: Rex::Proto::MDNS::Server
- Inherits:
-
DNS::Server
- Object
- DNS::Server
- Rex::Proto::MDNS::Server
- Defined in:
- lib/rex/proto/mdns/server.rb
Constant Summary
Constants inherited from DNS::Server
Instance Attribute Summary
Attributes inherited from DNS::Server
#cache, #fwd_res, #lock, #serve_tcp, #serve_udp, #sock_options, #start_cache, #tcp_sock, #udp_sock
Attributes included from IO::GramServer
#dispatch_request_proc, #listener_thread, #send_response_proc
Instance Method Summary collapse
- #alias ⇒ Object
-
#initialize(lhost = '0.0.0.0', lport = 5353, start_cache = false, res = nil, comm = nil, _ctx = {}, dblock = nil, sblock = nil) ⇒ Server
constructor
A new instance of Server.
Methods inherited from DNS::Server
#default_dispatch_request, #dispatch_request, hardcore_alias, #monitor_listener, #on_client_data, #running?, #start, #stop, #switchns
Methods included from IO::GramServer
#dispatch_request, #send_response, #start, #stop, #wait
Constructor Details
#initialize(lhost = '0.0.0.0', lport = 5353, start_cache = false, res = nil, comm = nil, _ctx = {}, dblock = nil, sblock = nil) ⇒ Server
Returns a new instance of Server.
8 9 10 11 |
# File 'lib/rex/proto/mdns/server.rb', line 8 def initialize(lhost = '0.0.0.0', lport = 5353, start_cache = false, res = nil, comm = nil, _ctx = {}, dblock = nil, sblock = nil) super(lhost, lport, true, false, start_cache, res, comm, dblock, sblock) end |
Instance Method Details
#alias ⇒ Object
13 14 15 |
# File 'lib/rex/proto/mdns/server.rb', line 13 def alias 'mDNS Server' end |