| Class | Session |
| In: |
lib/network/session.rb
|
| Parent: | Object |
The session class is a base class contains the minimum amount of attributes to reasonably maintain a socket session with a client.
| accepting | [RW] | |
| closing | [RW] | |
| connected | [RW] | |
| sock | [R] | |
| write_blocked | [RW] |
Create a new session object Used when opening both an acceptor or connection.
is_readable? tests if the socket is a candidate for select read {return] true if so, false if not
is_writable? tests if the socket is a candidate for select write {return] true if so, false if not