Class: Secure::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/appswarm/secure_connection.rb

Instance Method Summary collapse

Constructor Details

#initialize(socket) ⇒ Client

Returns a new instance of Client.



6
7
8
9
# File 'lib/appswarm/secure_connection.rb', line 6

def initialize(socket)
  @socket=socket
  @data=""
end

Instance Method Details

#register(&b) ⇒ Object



13
14
15
# File 'lib/appswarm/secure_connection.rb', line 13

def register(&b)
  
end

#runObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/appswarm/secure_connection.rb', line 17

def run
  @thread=Thread.new {
    begin
      loop do
        @data+=@socket.read(1024)
        check 
          end
    rescue Exception=>e
      log e,e.backtrace
    end
  }
end

#send(*m) ⇒ Object



10
11
12
# File 'lib/appswarm/secure_connection.rb', line 10

def send(*m)
  
end