FileParser::*#event_line -> #event_read
This commit is contained in:
parent
f370dcf52d
commit
49b31f2333
|
@ -7,7 +7,7 @@ module LogAn
|
||||||
@sid = sid
|
@sid = sid
|
||||||
end
|
end
|
||||||
|
|
||||||
def event_line line, sock
|
def event_read line, sock
|
||||||
cmd, l = line.unpack 'na*'
|
cmd, l = line.unpack 'na*'
|
||||||
self[cmd].call( l, sock) if self[cmd]
|
self[cmd].call( l, sock) if self[cmd]
|
||||||
end
|
end
|
||||||
|
|
|
@ -109,7 +109,7 @@ class LogAn::Inc::Server < ::Select::Server
|
||||||
def event_cmd cmd
|
def event_cmd cmd
|
||||||
sid, line = cmd.unpack 'Na*'
|
sid, line = cmd.unpack 'Na*'
|
||||||
fp = sid == 0 ? @sid0 : @config[:fileparser][sid]
|
fp = sid == 0 ? @sid0 : @config[:fileparser][sid]
|
||||||
fp.event_line line, self if fp
|
fp.event_read line, self if fp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue