FileParser::*#event_line -> #event_read

This commit is contained in:
Denis Knauf 2010-04-01 14:10:40 +02:00
parent f370dcf52d
commit 49b31f2333
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ module LogAn
@sid = sid
end
def event_line line, sock
def event_read line, sock
cmd, l = line.unpack 'na*'
self[cmd].call( l, sock) if self[cmd]
end

View file

@ -109,7 +109,7 @@ class LogAn::Inc::Server < ::Select::Server
def event_cmd cmd
sid, line = cmd.unpack 'Na*'
fp = sid == 0 ? @sid0 : @config[:fileparser][sid]
fp.event_line line, self if fp
fp.event_read line, self if fp
end
end
end