Module: EventMachine

Defined in:
lib/em/syslog.rb

Defined Under Namespace

Modules: Protocols

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.syslog_portObject (readonly)

Returns the value of attribute syslog_port.



49
50
51
# File 'lib/em/syslog.rb', line 49

def syslog_port
  @syslog_port
end

.syslog_sdObject (readonly)

Returns the value of attribute syslog_sd.



49
50
51
# File 'lib/em/syslog.rb', line 49

def syslog_sd
  @syslog_sd
end

.syslog_serverObject (readonly)

Returns the value of attribute syslog_server.



49
50
51
# File 'lib/em/syslog.rb', line 49

def syslog_server
  @syslog_server
end

Class Method Details

.syslog_setup(server, port = 514) ⇒ Object



50
51
52
53
# File 'lib/em/syslog.rb', line 50

def syslog_setup(server, port=514)
  @syslog_server, @syslog_port = server, port
  @syslog_sd = EM.open_datagram_socket('0.0.0.0', 0) # FIXME: Dumb quick fix.
end