Module: MEE::RFC5424
- Defined in:
- lib/mee/rfc5424.rb,
lib/mee/rfc5424/version.rb
Defined Under Namespace
Classes: LoggerProtocolAdapter, Meta, NewLineFraming, OctetFraming, SocketTransport, SyslogClient
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Method Summary
collapse
Class Method Details
.tcp(host, port) ⇒ Object
.tls(host, port) ⇒ Object
90
91
92
93
94
95
96
|
# File 'lib/mee/rfc5424.rb', line 90
def self.tls( host, port )
raw_transport = TCPSocket.new( host, port )
secure_transport = OpenSSL::SSL::SSLSocket.new raw_transport
secure_transport.connect
protocol = SyslogClient.new( SocketTransport.new( secure_transport ) )
LoggerProtocolAdapter.new( protocol )
end
|