Class: MEE::RFC5424::TCPFactory
- Inherits:
-
Object
- Object
- MEE::RFC5424::TCPFactory
- Defined in:
- lib/mee/rfc5424.rb
Direct Known Subclasses
Instance Method Summary collapse
- #dial ⇒ Object
-
#initialize(host, port) ⇒ TCPFactory
constructor
A new instance of TCPFactory.
Constructor Details
#initialize(host, port) ⇒ TCPFactory
Returns a new instance of TCPFactory.
62 63 64 65 |
# File 'lib/mee/rfc5424.rb', line 62 def initialize( host, port ) @host = host @port = port end |
Instance Method Details
#dial ⇒ Object
67 68 69 70 |
# File 'lib/mee/rfc5424.rb', line 67 def dial() target = TCPSocket.new( @host, @port ) target end |