Class: NetflowCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/netflow/collector.rb

Defined Under Namespace

Modules: Collector

Class Method Summary collapse

Class Method Details

.start_collector(bind_ip = '0.0.0.0', bind_port = 2055) ⇒ Object



19
20
21
22
23
# File 'lib/netflow/collector.rb', line 19

def self.start_collector(bind_ip = '0.0.0.0', bind_port = 2055)
  EventMachine::run do
    EventMachine::open_datagram_socket(bind_ip, bind_port, Collector)
  end
end