class Fluent::PluginHelper::Server::UDPCallbackSocket
Public Class Methods
new(sock, peeraddr, **kwargs)
click to toggle source
Calls superclass method
Fluent::PluginHelper::Server::CallbackSocket::new
# File lib/fluent/plugin_helper/server.rb, line 450 def initialize(sock, peeraddr, **kwargs) super("udp", sock, [], **kwargs) @peeraddr = peeraddr end
Public Instance Methods
remote_addr()
click to toggle source
# File lib/fluent/plugin_helper/server.rb, line 455 def remote_addr @peeraddr[3] end
remote_host()
click to toggle source
# File lib/fluent/plugin_helper/server.rb, line 459 def remote_host @peeraddr[2] end
remote_port()
click to toggle source
# File lib/fluent/plugin_helper/server.rb, line 463 def remote_port @peeraddr[1] end
write(data)
click to toggle source
# File lib/fluent/plugin_helper/server.rb, line 467 def write(data) @sock.send(data, 0, @peeraddr[3], @peeraddr[1]) end