Class: Fluent::PluginHelper::Server::TLSCallbackSocket
- Inherits:
-
CallbackSocket
- Object
- CallbackSocket
- Fluent::PluginHelper::Server::TLSCallbackSocket
- Defined in:
- lib/fluent/plugin_helper/server.rb
Instance Method Summary collapse
-
#initialize(sock) ⇒ TLSCallbackSocket
constructor
A new instance of TLSCallbackSocket.
- #write(data) ⇒ Object
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 |