Class: Moped::Connection::Socket::TCP
- Inherits:
-
TCPSocket
- Object
- TCPSocket
- Moped::Connection::Socket::TCP
- Includes:
- Connectable
- Defined in:
- lib/moped/connection/socket/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.
18 19 20 21 |
# File 'lib/moped/connection/socket/tcp.rb', line 18 def initialize(host, port) @host, @port = host, port handle_socket_errors { super } end |