No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
LICENSE.txt
README
Rakefile
client.rb
server.rb

README

Note : on Ruby 1.8.7 you must install minitest first :

   gem install minitest


1°/ install the code on your machine

    git clone git://github.com/alainravet/client-server-two-byte-calculator.git
    cd client-server-two-byte-calculator


2°/ launch the server :

    Server (Calculator) :
        > <open 1 console>
        > cd client-server-two-byte-calculator
        > ruby server.rb

3°/ launch the client :

    Automated Client with a few sample operations :
        > <open 1 console>
        > cd client-server-two-byte-calculator
        > ruby client.rb

 or :

    Interactive Client :
        > <open 1 console>
        > cd client-server-two-byte-calculator
        > telnet localhost 6666
          # type commands here
          # ex: PLUS 1 2 3
          # end with "OK CLOSE"

------
How to run the tests :

    > cd client-server-two-byte-calculator
    > rake test