Class: MEE::RFC5424::TLSFactory
- Inherits:
-
TCPFactory
- Object
- TCPFactory
- MEE::RFC5424::TLSFactory
- Defined in:
- lib/mee/rfc5424.rb
Instance Method Summary collapse
- #dial ⇒ Object
-
#initialize(host, port) ⇒ TLSFactory
constructor
A new instance of TLSFactory.
Constructor Details
#initialize(host, port) ⇒ TLSFactory
Returns a new instance of TLSFactory.
74 75 76 |
# File 'lib/mee/rfc5424.rb', line 74 def initialize( host, port ) super end |
Instance Method Details
#dial ⇒ Object
78 79 80 81 82 83 |
# File 'lib/mee/rfc5424.rb', line 78 def dial() clear_text_transport = super secure_transport = OpenSSL::SSL::SSLSocket.new clear_text_transport secure_transport.connect secure_transport end |