Class: Ione::Io::Connection

Inherits:
BaseConnection show all
Defined in:
lib/ione/io/connection.rb

Overview

A wrapper around a socket. Handles connecting to the remote host, reading from and writing to the socket.

Since:

  • v1.0.0

Constant Summary

Constants inherited from BaseConnection

BaseConnection::CLOSED_STATE, BaseConnection::CONNECTED_STATE, BaseConnection::CONNECTING_STATE, BaseConnection::DRAINING_STATE

Instance Attribute Summary collapse

Attributes inherited from BaseConnection

#host, #port

Method Summary

Methods inherited from BaseConnection

#close, #closed?, #connected?, #drain, #on_closed, #on_data, #to_s, #write

Instance Attribute Details

#connection_timeoutObject (readonly)

Since:

  • v1.0.0


9
10
11
# File 'lib/ione/io/connection.rb', line 9

def connection_timeout
  @connection_timeout
end