Method: AsProject::FCSHS#start

Defined in:
lib/fcshs.rb

#startObject



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/fcshs.rb', line 89

def start
  while
    session = @socket.accept
    dir = session.gets
    if(dir.match(/^0/))
      puts '>> Kill all fcsh instances and close the socket now!'
      close_fcsh
      exit
    end
    command = session.gets
    execute(session, dir, command)
    session.close
    sleep 0.75
  end
end