| Server IP : 74.208.236.79 / Your IP : 216.73.216.50 Web Server : Apache System : Linux infongp-us50 4.4.400-icpu-108 #2 SMP Wed Feb 11 10:12:42 UTC 2026 x86_64 User : u93192080 ( 6162215) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/usr/lib/ruby/vendor_ruby/em/protocols/ |
Upload File : |
module EventMachine
module Protocols
# LineProtocol will parse out newline terminated strings from a receive_data stream
#
# module Server
# include EM::P::LineProtocol
#
# def receive_line(line)
# send_data("you said: #{line}")
# end
# end
#
module LineProtocol
# @private
def receive_data data
(@buf ||= '') << data
@buf.each_line do |line|
if line[-1] == "\n"
receive_line(line.chomp)
else
@buf = line
end
end
end
# Invoked with lines received over the network
def receive_line(line)
# stub
end
end
end
end