Class: Tep::WebSocket::ConnectionState

Inherits:
Object
  • Object
show all
Defined in:
lib/tep/websocket/connection.rb

Overview

Per-recv-loop iteration state. Avoids tuple-returns from parse_from_buf calls (spinel multi-return support is uneven).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConnectionState

Returns a new instance of ConnectionState.



165
166
167
168
# File 'lib/tep/websocket/connection.rb', line 165

def initialize
  @start = 0
  @avail = 0
end

Instance Attribute Details

#availObject

Returns the value of attribute avail.



164
165
166
# File 'lib/tep/websocket/connection.rb', line 164

def avail
  @avail
end

#startObject

Returns the value of attribute start.



164
165
166
# File 'lib/tep/websocket/connection.rb', line 164

def start
  @start
end