Skip to content

Modifying SocketDemo to work as Magic 8 Ball. An exercise to prepare for the next phase of the Clack project

Notifications You must be signed in to change notification settings

BlueGadget89/Magic8Ball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  1. Download code into IDEA.
  2. Build the project.
  3. Server
    1. Open a terminal/command window.
    2. cd to Magic8Ball/out/production/Magic8Ball
    3. Enter 'java Magic8BallDemo' to see the usage message.
    4. Enter 'java Magic8BallDemo server 4466' to start the server on port 4466 (you can use any port in the User Ports range that is not already in use on your computer).
    5. You should see a server startup message.
    6. Leave the window open.
  4. Client
    1. Open another terminal/command window.
    2. cd to Magic8Ball/out/production/Magic8Ball
    3. Enter 'java Magic8BallDemo client localhost 4466' to start the client (if you used a different number for the server, use that number here as well).
    4. You should see a message from the server.
    5. Enter text from the keyboard; when you hit Enter you will receive a reply.
    6. When you hit just Enter, both client and server will stop with a message.

About

Modifying SocketDemo to work as Magic 8 Ball. An exercise to prepare for the next phase of the Clack project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages