Class: Moped::Sockets::TCP
- Includes:
- Connectable
- Defined in:
- lib/moped/sockets/tcp.rb
Overview
This is a wrapper around a tcp socket.
Instance Attribute Summary
Attributes included from Connectable
Instance Method Summary collapse
-
#initialize(host, port) ⇒ TCP
constructor
Initialize the new TCPSocket.
Methods included from Connectable
#alive?, included, #read, #write
Constructor Details
#initialize(host, port) ⇒ TCP
Initialize the new TCPSocket.
17 18 19 20 |
# File 'lib/moped/sockets/tcp.rb', line 17 def initialize(host, port) @host, @port = host, port handle_socket_errors { super } end |