Sha256: b8963124e0513f831414ff59df724bbcdd9e4651292e07fb622daa546acdbc5b
Contents?: true
Size: 487 Bytes
Versions: 12
Compression:
Stored size: 487 Bytes
Contents
require 'fluent/plugin/socket_util' module Fluent class UdpInput < SocketUtil::BaseInput Plugin.register_input('udp', self) config_set_default :port, 5160 config_param :body_size_limit, :size, :default => 4096 def listen(callback) log.debug "listening udp socket on #{@bind}:#{@port}" @usock = SocketUtil.create_udp_socket(@bind) @usock.bind(@bind, @port) SocketUtil::UdpHandler.new(@usock, log, @body_size_limit, callback) end end end
Version data entries
12 entries across 12 versions & 1 rubygems