- Download code into IDEA.
- Build the project.
- Server
- Open a terminal/command window.
- cd to Magic8Ball/out/production/Magic8Ball
- Enter 'java Magic8BallDemo' to see the usage message.
- 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).
- You should see a server startup message.
- Leave the window open.
- Client
- Open another terminal/command window.
- cd to Magic8Ball/out/production/Magic8Ball
- 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).
- You should see a message from the server.
- Enter text from the keyboard; when you hit Enter you will receive a reply.
- When you hit just Enter, both client and server will stop with a message.
-
Notifications
You must be signed in to change notification settings - Fork 0
BlueGadget89/Magic8Ball
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published