Class: Fluent::PluginHelper::Server::TLSCallbackSocket

Inherits:
CallbackSocket
  • Object
show all
Defined in:
lib/fluent/plugin_helper/server.rb

Instance Method Summary collapse

Methods inherited from CallbackSocket

#close, #data, #on, #remote_addr, #remote_host, #remote_port, #send

Constructor Details

#initialize(sock) ⇒ TLSCallbackSocket

Returns a new instance of TLSCallbackSocket.



439
440
441
442
# File 'lib/fluent/plugin_helper/server.rb', line 439

def initialize(sock)
  super("tls", sock, [:data, :write_complete, :close])
  @peeraddr = @sock.to_io.peeraddr
end

Instance Method Details

#write(data) ⇒ Object



444
445
446
# File 'lib/fluent/plugin_helper/server.rb', line 444

def write(data)
  @sock.write(data)
end